diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-05-02 07:15:39 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-02 07:15:39 -0400 |
| commit | 5e76ce5069b4fd1e385b5b2bcbe05d01bfa1ebaa (patch) | |
| tree | bfca1440c9c1f8482939482d2b3c24d91287fa2c /lib/jhash.c | |
| parent | a599986949a9a23df459ac5d7cd6050384750783 (diff) | |
Revert "bgpd: Prevent IPv6 routes received via a ibgp session with own ip as nexthop "
Diffstat (limited to 'lib/jhash.c')
| -rw-r--r-- | lib/jhash.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/jhash.c b/lib/jhash.c index d0aff57d87..0d561ef3a4 100644 --- a/lib/jhash.c +++ b/lib/jhash.c @@ -185,18 +185,3 @@ uint32_t jhash_1word(uint32_t a, uint32_t initval) { return jhash_3words(a, 0, 0, initval); } - -/* ipv6 hash function */ -uint32_t __ipv6_addr_jhash(const struct in6_addr *a, const uint32_t initval) -{ - uint32_t v = 0; - uint32_t y[4] = {0}; - - /* Since s6_addr32 is not available is few os like FreeBSD, NetBDS, - * OMIBDS & OpenBDS. So recreating in uint32_t format. - */ - memcpy(y, a->s6_addr, sizeof(struct in6_addr)); - v = y[0] ^ y[1]; - - return jhash_3words(v, y[2], y[3], initval); -} |
