summaryrefslogtreecommitdiffstats
path: root/lib/ns.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2016-10-29 02:32:07 +0200
committerRenato Westphal <renato@opensourcerouting.org>2016-11-28 19:18:35 +0100
commitf30c50b99223be343b7fe1ae9e374602ec0d93d5 (patch)
treeb56a33113f07c0657711844df53483bd153a3971 /lib/ns.c
parentlib: remove unused ns code (diff)
downloadfrr-f30c50b99223be343b7fe1ae9e374602ec0d93d5.tar.xz
frr-f30c50b99223be343b7fe1ae9e374602ec0d93d5.zip
zebra/lib: move some code around
* move netlink code from zebra_nc.c to kernel_netlink.c; * move vrf CLI commands from if.c/interface.c to vrf.c/zebra_vrf.c; * move declaration of the 'ns' structure to a header file. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/ns.c')
-rw-r--r--lib/ns.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/ns.c b/lib/ns.c
index 07e6ec5b9..904fc6999 100644
--- a/lib/ns.c
+++ b/lib/ns.c
@@ -91,22 +91,6 @@ static int have_netns(void)
#endif
}
-struct ns
-{
- /* Identifier, same as the vector index */
- ns_id_t ns_id;
- /* Name */
- char *name;
- /* File descriptor */
- int fd;
-
- /* Master list of interfaces belonging to this NS */
- struct list *iflist;
-
- /* User data */
- void *info;
-};
-
/* Holding NS hooks */
struct ns_master
{