9ef5e47dfc
git-svn-id: svn://svn.openwrt.org/openwrt/packages@26362 3c298f89-4303-0410-b956-a3cf2f4a3e73
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
--- a/bgpd/bgp_route.c
|
||
+++ b/bgpd/bgp_route.c
|
||
@@ -4327,6 +4327,7 @@ ALIAS_DEPRECATED (no_bgp_network_mask_na
|
||
"Specify a BGP backdoor route\n"
|
||
"AS-Path hopcount limit attribute\n"
|
||
"AS-Pathlimit TTL, in number of AS-Path hops\n")
|
||
+#ifdef HAVE_IPV6
|
||
ALIAS_DEPRECATED (ipv6_bgp_network,
|
||
ipv6_bgp_network_ttl_cmd,
|
||
"network X:X::X:X/M pathlimit <0-255>",
|
||
@@ -4342,6 +4343,7 @@ ALIAS_DEPRECATED (no_ipv6_bgp_network,
|
||
"IPv6 prefix <network>/<length>\n"
|
||
"AS-Path hopcount limit attribute\n"
|
||
"AS-Pathlimit TTL, in number of AS-Path hops\n")
|
||
+#endif /* HAVE_IPV6 */
|
||
|
||
/* Aggreagete address:
|
||
|
||
@@ -12133,9 +12135,11 @@ bgp_route_init (void)
|
||
install_element (BGP_IPV4M_NODE, &no_bgp_network_backdoor_ttl_cmd);
|
||
install_element (BGP_IPV4M_NODE, &no_bgp_network_mask_backdoor_ttl_cmd);
|
||
install_element (BGP_IPV4M_NODE, &no_bgp_network_mask_natural_backdoor_ttl_cmd);
|
||
-
|
||
+
|
||
+#ifdef HAVE_IPV6
|
||
install_element (BGP_IPV6_NODE, &ipv6_bgp_network_ttl_cmd);
|
||
install_element (BGP_IPV6_NODE, &no_ipv6_bgp_network_ttl_cmd);
|
||
+#endif
|
||
}
|
||
|
||
void
|