summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_ns.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2019-12-20 17:51:37 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2020-09-11 18:26:23 +0200
commit2961d0601c7d168eed5bbe8e95f80a642f9cb4b5 (patch)
tree940c64d4ab3be5613752b36d78f027e28291324c /zebra/zebra_ns.h
parentzebra: local mac entries populated in correct netnamespace (diff)
downloadfrr-2961d0601c7d168eed5bbe8e95f80a642f9cb4b5.tar.xz
frr-2961d0601c7d168eed5bbe8e95f80a642f9cb4b5.zip
lib, zebra: reuse and adapt ns_list walk functionality
the walk routine is used by vxlan service to identify some contexts in each specific network namespace, when vrf netns backend is used. that walk mechanism is extended with some additional paramters to the walk routine. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra/zebra_ns.h')
-rw-r--r--zebra/zebra_ns.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/zebra/zebra_ns.h b/zebra/zebra_ns.h
index fa2fd47c2..f7d1f4078 100644
--- a/zebra/zebra_ns.h
+++ b/zebra/zebra_ns.h
@@ -67,19 +67,14 @@ struct zebra_ns *zebra_ns_lookup(ns_id_t ns_id);
int zebra_ns_init(const char *optional_default_name);
int zebra_ns_enable(ns_id_t ns_id, void **info);
int zebra_ns_disabled(struct ns *ns);
-int zebra_ns_early_shutdown(struct ns *ns);
-int zebra_ns_final_shutdown(struct ns *ns);
-
+int zebra_ns_early_shutdown(struct ns *ns,
+ void *param_in __attribute__((unused)),
+ void **param_out __attribute__((unused)));
+int zebra_ns_final_shutdown(struct ns *ns,
+ void *param_in __attribute__((unused)),
+ void **param_out __attribute__((unused)));
int zebra_ns_config_write(struct vty *vty, struct ns *ns);
-#define ZNS_WALK_CONTINUE 0
-#define ZNS_WALK_STOP 1
-void zebra_ns_list_walk(int (*exec_for_each_zns)(struct zebra_ns *zns,
- void *param_in,
- void **param_out),
- void *param_in,
- void **param_out);
-
#ifdef __cplusplus
}
#endif