diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2015-01-18 16:10:17 +0200 |
---|---|---|
committer | Stephen Hemminger <shemming@brocade.com> | 2015-02-05 10:28:19 -0800 |
commit | e998e118ddc3a0ab1b325ad7ed4abe59b83e684a (patch) | |
tree | 31b1bd53f6e6a0d33e2669b741a552585d907a14 /include/utils.h | |
parent | 4c7d75de95f5f20ab106460cfe86218b2dd87a77 (diff) |
lib: Exec func on each netns
Added possibility to run some func on each netns.
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Diffstat (limited to 'include/utils.h')
-rw-r--r-- | include/utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/utils.h b/include/utils.h index e1fe7cfc..a8817d30 100644 --- a/include/utils.h +++ b/include/utils.h @@ -5,6 +5,7 @@ #include <asm/types.h> #include <resolv.h> #include <stdlib.h> +#include <stdbool.h> #include "libnetlink.h" #include "ll_map.h" @@ -162,4 +163,7 @@ int iplink_parse(int argc, char **argv, struct iplink_req *req, char **name, char **type, char **link, char **dev, int *group, int *index); +extern int do_each_netns(int (*func)(char *nsname, void *arg), void *arg, + bool show_label); + #endif /* __UTILS_H__ */ |