• Home
  • Raw
  • Download

Lines Matching refs:nip

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