]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Prevent IPv6 routes received via a ibgp session with own ip as nexthop
authorBiswajit Sadhu <sadhub@vmware.com>
Wed, 24 Apr 2019 07:40:01 +0000 (00:40 -0700)
committerBiswajit Sadhu <sadhub@vmware.com>
Wed, 24 Apr 2019 07:40:01 +0000 (00:40 -0700)
commit2f6197b044edea555348f4c0c5acd2d3ab5feabf
tree5196e64b0eadccb8067f35327a0e8127fad250a4
parente400cd8aac83243ca47ae0797407a06b08d1dbb8
bgpd: Prevent IPv6 routes received via a ibgp session with own ip as nexthop

Prevent IPv6 routes received via a ibgp session with one of its own interface
ip as nexthop from getting installed in the BGP table.

Implemented IPV6 HASH table, where we need to add any ipv6 address as they
gets configured and delete them from the HASH table as the ipv6 addresses
get unconfigured. The above hash table is used to verify if any route learned
via BGP has nexthop which is equal to one of its its connected ipv6 interface.

Signed-off-by: Biswajit Sadhu sadhub@vmware.com
bgpd/bgp_nexthop.c
bgpd/bgp_nexthop.h
bgpd/bgp_route.c
bgpd/bgpd.c
bgpd/bgpd.h
lib/jhash.c
lib/jhash.h