diff options
| author | Renato Westphal <renato@openbsd.org> | 2018-03-26 13:29:38 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-26 13:29:38 -0300 |
| commit | 4adfefaeaca8d29ded65094702f2ee9b1839f02c (patch) | |
| tree | e44795ca1be3ba3e41cc82da5ecfb6aa0dac9d81 /zebra/zebra_ns.c | |
| parent | 81b6404b5846d23d0e01b912ffcb4f94d039d1db (diff) | |
| parent | b00592cb797dc14e2df56e63d3df2433cf89a2f4 (diff) | |
Merge pull request #1956 from pguibert6WIND/misc_fixes_netns
Misc fixes netns
Diffstat (limited to 'zebra/zebra_ns.c')
| -rw-r--r-- | zebra/zebra_ns.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/zebra/zebra_ns.c b/zebra/zebra_ns.c index 29c179245b..d841bdeec4 100644 --- a/zebra/zebra_ns.c +++ b/zebra/zebra_ns.c @@ -135,6 +135,10 @@ int zebra_ns_enable(ns_id_t ns_id, void **info) zns->ns_id = ns_id; + zns->rules_hash = + hash_create_size(8, zebra_pbr_rules_hash_key, + zebra_pbr_rules_hash_equal, "Rules Hash"); + #if defined(HAVE_RTADV) rtadv_init(zns); #endif @@ -287,9 +291,6 @@ int zebra_ns_init(void) /* Default NS is activated */ zebra_ns_enable(ns_id, (void **)&dzns); - dzns->rules_hash = - hash_create_size(8, zebra_pbr_rules_hash_key, - zebra_pbr_rules_hash_equal, "Rules Hash"); if (vrf_is_backend_netns()) { ns_add_hook(NS_NEW_HOOK, zebra_ns_new); ns_add_hook(NS_ENABLE_HOOK, zebra_ns_enabled); |
