summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/tsearch.c
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2012-02-05 22:38:06 +0000
committermikeb <mikeb@openbsd.org>2012-02-05 22:38:06 +0000
commit2633ae8c4c8a6488faf018a1099a19b6390683f2 (patch)
tree663292425533efa4f62bf4cd6de0894d77fba19b /lib/libc/stdlib/tsearch.c
parentCheck for the right return value from sscanf. (diff)
downloadwireguard-openbsd-2633ae8c4c8a6488faf018a1099a19b6390683f2.tar.xz
wireguard-openbsd-2633ae8c4c8a6488faf018a1099a19b6390683f2.zip
Improve the ICMPv6 direction check
Following bluhm's advice this changes the way we setup state keys and perform state lookups for ICMPv6 Neighbor Discovery packets: - replace the NS-dst with ND target address; - replace the NA-src with ND target address; - replace the NA-dst with unspecified address if it is a multicast. This allows pf to match Address Resolution, Neighbor Unreachability Detection and Duplicate Address Detection packets to the corresponding states without the need to create new ones or match unrelated ones. As a side effect we're doing now one state table lookup for ND packets instead of two. Fixes a bug uncovered by one of the previous commits that virtually breaks IPv6 connectivity after few minutes of use. ok stsp henning, with and ok bluhm
Diffstat (limited to 'lib/libc/stdlib/tsearch.c')
0 files changed, 0 insertions, 0 deletions