Fix nexthop reachability check for BGP confederations Signed-off-by: Vasilis Tsiligia...
authorTravis Kemen <thepeople@openwrt.org>
Wed, 26 Mar 2008 23:39:12 +0000 (23:39 +0000)
committerTravis Kemen <thepeople@openwrt.org>
Wed, 26 Mar 2008 23:39:12 +0000 (23:39 +0000)
SVN-Revision: 10665

net/quagga/patches/100-confederation.patch [new file with mode: 0644]

diff --git a/net/quagga/patches/100-confederation.patch b/net/quagga/patches/100-confederation.patch
new file mode 100644 (file)
index 0000000..73d75c5
--- /dev/null
@@ -0,0 +1,19 @@
+diff -Nur quagga-0.98.6/bgpd/bgp_route.c quagga-0.98.6-patched/bgpd/bgp_route.c
+--- quagga-0.98.6/bgpd/bgp_route.c     2006-05-08 18:03:25.000000000 +0300
++++ quagga-0.98.6-patched/bgpd/bgp_route.c     2006-12-08 23:10:37.000000000 +0200
+@@ -1815,6 +1815,7 @@
+       if ((afi == AFI_IP || afi == AFI_IP6)
+         && safi == SAFI_UNICAST 
+         && (peer_sort (peer) == BGP_PEER_IBGP
++              || peer_sort (peer) == BGP_PEER_CONFED
+             || (peer_sort (peer) == BGP_PEER_EBGP && peer->ttl != 1)
+             || CHECK_FLAG (peer->flags, PEER_FLAG_ENFORCE_MULTIHOP)))
+       {
+@@ -1862,6 +1863,7 @@
+   if ((afi == AFI_IP || afi == AFI_IP6)
+       && safi == SAFI_UNICAST
+       && (peer_sort (peer) == BGP_PEER_IBGP
++          || peer_sort (peer) == BGP_PEER_CONFED
+         || (peer_sort (peer) == BGP_PEER_EBGP && peer->ttl != 1)
+         || CHECK_FLAG (peer->flags, PEER_FLAG_ENFORCE_MULTIHOP)))
+     {