[quagga-dev 1072] [PATCH] Fix UNH IOL BGP-4.1.12f

rivo nurges rix at estpak.ee
Thu Apr 22 11:21:14 BST 2004


Attached patch fixes UNH IOL BGP-4.1.12f

-- 
rix
http://www.ripe.net/perl/whois?rix@estpak.ee
-------------- next part --------------
Index: bgpd/ChangeLog
===================================================================
RCS file: /var/cvsroot/quagga/bgpd/ChangeLog,v
retrieving revision 1.8
diff -u -3 -p -r1.8 ChangeLog
--- bgpd/ChangeLog	20 Apr 2004 16:54:49 -0000	1.8
+++ bgpd/ChangeLog	22 Apr 2004 10:25:50 -0000
@@ -1,3 +1,7 @@
+2004-04-22 rivo nurges <rix at estpak.ee>
+
+	* bgp_route.c: fix UNH IOL BGP-4.1.12f
+
 2004-04-16 rivo nurges <rix at estpak.ee>
 
 	* bgpd.h, bgp_debug.c: update cease subcodes to
Index: bgpd/bgp_route.c
===================================================================
RCS file: /var/cvsroot/quagga/bgpd/bgp_route.c,v
retrieving revision 1.11
diff -u -3 -p -r1.11 bgp_route.c
--- bgpd/bgp_route.c	20 Apr 2004 15:13:15 -0000	1.11
+++ bgpd/bgp_route.c	22 Apr 2004 10:25:53 -0000
@@ -480,6 +480,16 @@ bgp_announce_check (struct bgp_info *ri,
   if (from == peer)
     return 0;
 
+  /* If peer's id and route's nexthop are same. draft-ietf-idr-bgp4-23 5.1.3 */
+  if (p->family == AF_INET
+      && IPV4_ADDR_SAME(&peer->remote_id, &ri->attr->nexthop))
+    return 0;
+#ifdef HAVE_IPV6
+  if (p->family == AF_INET6
+     && IPV6_ADDR_SAME(&peer->remote_id, &ri->attr->nexthop))
+    return 0;
+#endif
+
   /* Aggregate-address suppress check. */
   if (ri->suppress)
     if (! UNSUPPRESS_MAP_NAME (filter))


More information about the Quagga-dev mailing list