]> git.proxmox.com Git - mirror_frr.git/commit - ripngd/ripng_nexthop.h
lib: fix "sockunion: add hash function" for BSD (9196caf)
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 20 May 2015 20:34:56 +0000 (22:34 +0200)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 8 Sep 2015 20:19:30 +0000 (13:19 -0700)
commit5c6ed111e5ef6e26b1ae8a42da07f4fce3e9567f
tree49a6c42c21c810416088a776fcc4391705100ac1
parent7cb5cdbb346504cac853499b2977b47c34ea0a43
lib: fix "sockunion: add hash function" for BSD (9196caf)

The sockunion_hash() function uses s6_addr32, which is not defined on
BSD systems.  (It only works on glibc because we set _GNU_SOURCE)

ripngd/ripng_nexthop.h already contains a workaround for this.  Bump
workaround to prefix.h so it's available everywhere.

Reported-by: NetDEF CI System <mwinter@netdef.org>
Fixes: 9196caf ("sockunion: add hash function")
Cc: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/prefix.h
ripngd/ripng_nexthop.h