]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Reject IPv4 SO_REUSEPORT_LB groups when looking up an IPv6 listening socket
authorAndrew Gallatin <gallatin@FreeBSD.org>
Mon, 27 Aug 2018 18:13:20 +0000 (18:13 +0000)
committerAndrew Gallatin <gallatin@FreeBSD.org>
Mon, 27 Aug 2018 18:13:20 +0000 (18:13 +0000)
commit4b82a7b62f167734f760a1a886581721c25f1eae
treeb15e6faf53b1f98f86115c8762af092d46d36e82
parentd81347652cf4b3bedee180a55758857a5a7ac7da
Reject IPv4 SO_REUSEPORT_LB groups when looking up an IPv6 listening socket

Similar to how the IPv4 code will reject an IPv6 LB group,
we must ignore IPv4 LB groups when looking up an IPv6
listening socket.   If this is not done, a port only match
may return an IPv4 socket, which causes problems (like
sending IPv6 packets with a hopcount of 0, making them unrouteable).

Thanks to rrs for all the work to diagnose this.

Approved by: re (rgrimes)
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D16899
sys/netinet6/in6_pcb.c