diff options
author | Andrew J. Schorr <ajschorr@alumni.princeton.edu> | 2007-05-30 22:10:34 +0200 |
---|---|---|
committer | Andrew J. Schorr <ajschorr@alumni.princeton.edu> | 2007-05-30 22:10:34 +0200 |
commit | 093033144658c5d914429fad5b0a6cf952f20943 (patch) | |
tree | 02e4c24a9ca95a37bb3995bdc6e0f7e3222f2b87 /zebra/zebra_routemap.c | |
parent | [PtP] Fix BSD problems with PtP interfaces: must treat RTA_BRD as peer address (diff) | |
download | frr-093033144658c5d914429fad5b0a6cf952f20943.tar.xz frr-093033144658c5d914429fad5b0a6cf952f20943.zip |
[zebra] Trivial patches so we can compile when IPv6 is not enabled
2007-05-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* zebra_routemap.c: (route_set_src_compile) Use '#ifdef HAVE_IPV6'
as needed.
* zebra_vty.c: (vty_show_ip_route_detail, vty_show_ip_route) Use
'#ifdef HAVE_IPV6' as needed.
(show_ip_protocol) Move function definition outside of
'#ifdef HAVE_IPV6' section.
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 44367f8d5..808dcf745 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; |