diff options
Diffstat (limited to 'lib/route/rtnl.c')
-rw-r--r-- | lib/route/rtnl.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/route/rtnl.c b/lib/route/rtnl.c index 6a55ca1..242e2a8 100644 --- a/lib/route/rtnl.c +++ b/lib/route/rtnl.c @@ -58,18 +58,18 @@ int nl_rtgen_request(struct nl_sock *sk, int type, int family, int flags) */ static const struct trans_tbl rtntypes[] = { - __ADD(RTN_UNSPEC,unspec) - __ADD(RTN_UNICAST,unicast) - __ADD(RTN_LOCAL,local) - __ADD(RTN_BROADCAST,broadcast) - __ADD(RTN_ANYCAST,anycast) - __ADD(RTN_MULTICAST,multicast) - __ADD(RTN_BLACKHOLE,blackhole) - __ADD(RTN_UNREACHABLE,unreachable) - __ADD(RTN_PROHIBIT,prohibit) - __ADD(RTN_THROW,throw) - __ADD(RTN_NAT,nat) - __ADD(RTN_XRESOLVE,xresolve) + __ADD(RTN_UNSPEC,unspec), + __ADD(RTN_UNICAST,unicast), + __ADD(RTN_LOCAL,local), + __ADD(RTN_BROADCAST,broadcast), + __ADD(RTN_ANYCAST,anycast), + __ADD(RTN_MULTICAST,multicast), + __ADD(RTN_BLACKHOLE,blackhole), + __ADD(RTN_UNREACHABLE,unreachable), + __ADD(RTN_PROHIBIT,prohibit), + __ADD(RTN_THROW,throw), + __ADD(RTN_NAT,nat), + __ADD(RTN_XRESOLVE,xresolve), }; char *nl_rtntype2str(int type, char *buf, size_t size) @@ -90,11 +90,11 @@ int nl_str2rtntype(const char *name) */ static const struct trans_tbl scopes[] = { - __ADD(255,nowhere) - __ADD(254,host) - __ADD(253,link) - __ADD(200,site) - __ADD(0,global) + __ADD(255,nowhere), + __ADD(254,host), + __ADD(253,link), + __ADD(200,site), + __ADD(0,global), }; char *rtnl_scope2str(int scope, char *buf, size_t size) |