Lines Matching refs:nip6

185   uint8_t nip6[16];  member
1306 static int verifyip6_in_lease(uint8_t *nip6, uint8_t *duid, uint16_t ia_type, uint32_t iaid) in verifyip6_in_lease() argument
1312 if (!memcmp(((dyn_lease6*) listdls->arg)->lease_nip6, nip6, sizeof(uint32_t)*4)) in verifyip6_in_lease()
1320 if (memcmp(sls6->nip6, nip6, sizeof(uint32_t)*4)==0) return -2; in verifyip6_in_lease()
1322 if (memcmp(nip6, gconfig.start_ip6, sizeof(uint32_t)*4) < 0 || in verifyip6_in_lease()
1323 memcmp(nip6, gconfig.end_ip6, sizeof(uint32_t)*4) > 0) in verifyip6_in_lease()
1482 static uint8_t nip6[16] = {0, }; in getip6_from_pool() local
1488 memcpy(nip6, ((dyn_lease6*)listdls6->arg)->lease_nip6, sizeof(nip6)); in getip6_from_pool()
1494 if(verifyip6_in_lease(nip6, duid, ia_type, iaid) < 0) in getip6_from_pool()
1495 memset(nip6, 0, sizeof(nip6)); in getip6_from_pool()
1502 if(!memcmp(nip6, (uint8_t[16]){0}, sizeof(uint32_t)*4)) { in getip6_from_pool()
1505 memcpy(nip6, sls6->nip6, sizeof(nip6)); in getip6_from_pool()
1512 if(!memcmp(nip6, (uint8_t[16]){0}, sizeof(uint32_t)*4)) { in getip6_from_pool()
1513 memcpy(nip6, gconfig.start_ip6, sizeof(nip6)); in getip6_from_pool()
1514 while(memcmp(nip6, gconfig.end_ip6, sizeof(nip6)) < 0) { in getip6_from_pool()
1515 if(!verifyip6_in_lease(nip6, duid, ia_type, iaid)) break; in getip6_from_pool()
1516 int i=sizeof(nip6); in getip6_from_pool()
1518 ++nip6[i]; in getip6_from_pool()
1519 if (!nip6[i]) { in getip6_from_pool()
1520 if(i==(sizeof(nip6)-1)) ++nip6[i]; in getip6_from_pool()
1521 ++nip6[i-1]; in getip6_from_pool()
1527 if (memcmp(nip6, gconfig.end_ip6, sizeof(nip6)) > 0) { in getip6_from_pool()
1528 memset(nip6, 0, sizeof(nip6)); in getip6_from_pool()
1533 if(memcmp(nip6, (uint8_t[16]){0}, sizeof(uint32_t)*4)) { in getip6_from_pool()
1534 addip6_to_lease(nip6, duid, duid_len, ia_type, iaid, lifetime, 1); in getip6_from_pool()
1536 nip6[0], nip6[1], nip6[2], nip6[3], nip6[4], nip6[5], nip6[6], nip6[7], nip6[8], in getip6_from_pool()
1537 nip6[9], nip6[10], nip6[11], nip6[12], nip6[13], nip6[14], nip6[15]); in getip6_from_pool()
1539 return nip6; in getip6_from_pool()