diff options
author | whitespace / reindent <invalid@invalid.invalid> | 2017-07-17 14:03:14 +0200 |
---|---|---|
committer | whitespace / reindent <invalid@invalid.invalid> | 2017-07-17 14:04:07 +0200 |
commit | d62a17aedeb0eebdba98238874bb13d62c48dbf9 (patch) | |
tree | 3b319b1d61c8b85b4d1f06adf8b844bb8a9b5107 /zebra/zebra_ns.h | |
parent | *: add indent control files (diff) | |
download | frr-d62a17aedeb0eebdba98238874bb13d62c48dbf9.tar.xz frr-d62a17aedeb0eebdba98238874bb13d62c48dbf9.zip |
*: reindentreindent-master-after
indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'`
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'zebra/zebra_ns.h')
-rw-r--r-- | zebra/zebra_ns.h | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/zebra/zebra_ns.h b/zebra/zebra_ns.h index 721b6c818..6cfba93e5 100644 --- a/zebra/zebra_ns.h +++ b/zebra/zebra_ns.h @@ -26,42 +26,40 @@ #ifdef HAVE_NETLINK /* Socket interface to kernel */ -struct nlsock -{ - int sock; - int seq; - struct sockaddr_nl snl; - char name[64]; +struct nlsock { + int sock; + int seq; + struct sockaddr_nl snl; + char name[64]; }; #endif -struct zebra_ns -{ - /* net-ns name. */ - char name[VRF_NAMSIZ]; +struct zebra_ns { + /* net-ns name. */ + char name[VRF_NAMSIZ]; - /* Identifier. */ - ns_id_t ns_id; + /* Identifier. */ + ns_id_t ns_id; #ifdef HAVE_NETLINK - struct nlsock netlink; /* kernel messages */ - struct nlsock netlink_cmd; /* command channel */ - struct thread *t_netlink; + struct nlsock netlink; /* kernel messages */ + struct nlsock netlink_cmd; /* command channel */ + struct thread *t_netlink; #endif - struct route_table *if_table; + struct route_table *if_table; -#if defined (HAVE_RTADV) - struct rtadv rtadv; +#if defined(HAVE_RTADV) + struct rtadv rtadv; #endif /* HAVE_RTADV */ }; #define NS_DEFAULT 0 #define NS_UNKNOWN UINT16_MAX -struct zebra_ns *zebra_ns_lookup (ns_id_t ns_id); +struct zebra_ns *zebra_ns_lookup(ns_id_t ns_id); -int zebra_ns_init (void); -int zebra_ns_enable (ns_id_t ns_id, void **info); -int zebra_ns_disable (ns_id_t ns_id, void **info); +int zebra_ns_init(void); +int zebra_ns_enable(ns_id_t ns_id, void **info); +int zebra_ns_disable(ns_id_t ns_id, void **info); #endif |