summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_route.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 46c0c85f..a919b54e 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -823,16 +823,6 @@ bgp_announce_check (struct bgp_info *ri, struct peer *peer, struct prefix *p,
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, &riattr->nexthop))
- return 0;
-#ifdef HAVE_IPV6
- if (p->family == AF_INET6
- && IPV6_ADDR_SAME(&peer->remote_id, &riattr->nexthop))
- return 0;
-#endif
-
/* Aggregate-address suppress check. */
if (ri->extra && ri->extra->suppress)
if (! UNSUPPRESS_MAP_NAME (filter))