summaryrefslogtreecommitdiff
path: root/server/dhcpd.c
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2008-01-02 23:47:22 +0000
committerFrancis Dupont <fdupont@isc.org>2008-01-02 23:47:22 +0000
commit1d9774ab570d77b7f52432c36e64cc7e59c50a59 (patch)
tree125723b4dca7b83c9e1dbbd9d5a34b1f6a253c38 /server/dhcpd.c
parent96b620e5a2752080dfab31d11fea860971da75f2 (diff)
downloadisc-dhcp-1d9774ab570d77b7f52432c36e64cc7e59c50a59.tar.gz
Cleanup IA_NA dependencies
Diffstat (limited to 'server/dhcpd.c')
-rw-r--r--server/dhcpd.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/server/dhcpd.c b/server/dhcpd.c
index 904d50d6..41e3813a 100644
--- a/server/dhcpd.c
+++ b/server/dhcpd.c
@@ -560,9 +560,15 @@ main(int argc, char **argv) {
#endif
#ifdef DHCPv6
- /* set up DHCPv6 hash */
- if (!ia_na_new_hash(&ia_active, DEFAULT_HASH_SIZE, MDL)) {
- log_fatal("Out of memory creating hash for active IA.");
+ /* set up DHCPv6 hashes */
+ if (!ia_na_new_hash(&ia_na_active, DEFAULT_HASH_SIZE, MDL)) {
+ log_fatal("Out of memory creating hash for active IA_NA.");
+ }
+ if (!ia_na_new_hash(&ia_ta_active, DEFAULT_HASH_SIZE, MDL)) {
+ log_fatal("Out of memory creating hash for active IA_TA.");
+ }
+ if (!ia_pd_new_hash(&ia_pd_active, DEFAULT_HASH_SIZE, MDL)) {
+ log_fatal("Out of memory creating hash for active IA_PD.");
}
#endif /* DHCPv6 */