diff options
Diffstat (limited to 'zebra/zebra_routemap.c')
-rw-r--r-- | zebra/zebra_routemap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/zebra_routemap.c b/zebra/zebra_routemap.c index 44367f8d..808dcf74 100644 --- a/zebra/zebra_routemap.c +++ b/zebra/zebra_routemap.c @@ -647,8 +647,10 @@ route_set_src_compile (const char *arg) if (inet_pton(AF_INET, arg, &src.ipv4) > 0) family = AF_INET; +#ifdef HAVE_IPV6 else if (inet_pton(AF_INET6, arg, &src.ipv6) > 0) family = AF_INET6; +#endif /* HAVE_IPV6 */ else return NULL; |