diff options
author | Biswajit Sadhu <sadhub@vmware.com> | 2019-04-24 09:40:01 +0200 |
---|---|---|
committer | Biswajit Sadhu <sadhub@vmware.com> | 2019-04-24 09:40:01 +0200 |
commit | 2f6197b044edea555348f4c0c5acd2d3ab5feabf (patch) | |
tree | 5196e64b0eadccb8067f35327a0e8127fad250a4 /lib/jhash.h | |
parent | Merge pull request #4179 from donaldsharp/mroute_show (diff) | |
download | frr-2f6197b044edea555348f4c0c5acd2d3ab5feabf.tar.xz frr-2f6197b044edea555348f4c0c5acd2d3ab5feabf.zip |
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
Diffstat (limited to 'lib/jhash.h')
-rw-r--r-- | lib/jhash.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/jhash.h b/lib/jhash.h index 977421495..1b6f87936 100644 --- a/lib/jhash.h +++ b/lib/jhash.h @@ -45,6 +45,8 @@ extern uint32_t jhash_3words(uint32_t a, uint32_t b, uint32_t c, uint32_t initval); extern uint32_t jhash_2words(uint32_t a, uint32_t b, uint32_t initval); extern uint32_t jhash_1word(uint32_t a, uint32_t initval); +extern uint32_t __ipv6_addr_jhash(const struct in6_addr *a, + const uint32_t initval); #ifdef __cplusplus } |