diff options
Diffstat (limited to 'zebra/zebra_fpm_netlink.c')
-rw-r--r-- | zebra/zebra_fpm_netlink.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/zebra/zebra_fpm_netlink.c b/zebra/zebra_fpm_netlink.c index a09008b39..0d9f80932 100644 --- a/zebra/zebra_fpm_netlink.c +++ b/zebra/zebra_fpm_netlink.c @@ -54,14 +54,13 @@ addr_to_a (u_char af, void *addr) case AF_INET: return inet_ntoa (*((struct in_addr *) addr)); - -#ifdef HAVE_IPV6 + break; case AF_INET6: return inet6_ntoa (*((struct in6_addr *) addr)); -#endif - + break; default: return "<Addr in unknown AF>"; + break; } } @@ -93,12 +92,10 @@ af_addr_size (u_char af) case AF_INET: return 4; - -#ifdef HAVE_IPV6 + break; case AF_INET6: return 16; -#endif - + break; default: assert(0); return 16; |