Lines Matching refs:nip
176 uint32_t nip;
545 uint32_t optcode = 0, inf = infomode, convtmp, mask, nip, router;
637 if (striptovar(grp, (uint8_t*)&nip)<0) error_exit("wrong formatted static route option");
643 memcpy(((uint8_t*)options_list[count].val)+options_list[count].len, &nip, mask/8);
682 striptovar(tkip, &sltmp->nip);
1330 static int verifyip_in_lease(uint32_t nip, uint8_t mac[6])
1336 if (((dyn_lease*) listdls->arg)->lease_nip == nip) {
1344 if (sls->nip == nip) return -2;
1346 if ((ntohl(nip) < gconfig.start_ip) || (ntohl(nip) > gconfig.end_ip))
1435 uint32_t nip = 0;
1439 if (req_nip && (!verifyip_in_lease(req_nip, mac))) nip = req_nip;
1441 if (!nip) {
1444 nip = ((dyn_lease*)listdls->arg)->lease_nip;
1449 if (verifyip_in_lease(nip, mac) < 0) nip = 0;
1456 if (!nip) {
1459 nip = sls->nip;
1465 if (!nip) {
1466 for (nip = htonl(gconfig.start_ip); ntohl(nip) <= gconfig.end_ip; ) {
1467 if (!verifyip_in_lease(nip, mac)) break;
1468 nip = ntohl(nip);
1469 nip = htonl(++nip);
1471 if (ntohl(nip) > gconfig.end_ip) {
1472 nip = 0;
1476 if (nip) addip_to_lease(nip, mac, req_exp, hostname, 1);
1477 return nip;