static dhcpv6_gua_server_entry_s *libdhcpv6_server_entry_allocate(void) { dhcpv6_gua_server_entry_s *entry = ns_dyn_mem_alloc(sizeof(dhcpv6_gua_server_entry_s)); if (entry) { entry->clientIdSequence = 0; entry->enableAddressMapping = false; entry->enableAddressAutonous = true; entry->clientIdDefaultSuffics = 0x0000000; entry->maxSuppertedClients = 200; entry->validLifetime = 7200; ns_list_init(&entry->allocatedAddressList); } return entry; }
void pan_coordinator_blacklist_cache_init(pan_coordinator_blaclist_cache_s *blacklist_cache) { ns_list_init(&blacklist_cache->head); }
void pan_blacklist_cache_init(pan_blaclist_cache_s *blacklist_cache) { ns_list_init(&blacklist_cache->head); }