BUILD: tcp: use IPPROTO_IPV6 instead of SOL_IPV6 on FreeBSD/MacOS
authorWilly Tarreau <w@1wt.eu>
Wed, 31 Mar 2021 06:29:27 +0000 (08:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 31 Mar 2021 07:59:00 +0000 (09:59 +0200)
commit0cb5434c64e29d531cfd47115723c5cb2f094803
tree9529b7e3f69a4a023fdde6871d05faaea1b01c80
parent0233ce6217abbc515914b3a9da45f64f57859e96
BUILD: tcp: use IPPROTO_IPV6 instead of SOL_IPV6 on FreeBSD/MacOS

Lukas reported in issue #1203 that the previous fix for silent-drop in
commit ab79ee8b1 ("BUG/MINOR: tcp: fix silent-drop workaround for IPv6")
breaks the build on FreeBSD/MacOS due to SOL_IPV6 not being defined. On
these platforms, IPPROTO_IPV6 must be used instead, so this should fix
it.

This needs to be backported to whatever version the fix above is backported
to.

(cherry picked from commit da2319578555e56eafab0141505ce943f954d859)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit e3647da097fbf23ca45fb065bb5c1cde98d6c40d)
[wt: this is in proto_tcp.c in 2.2]
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit a20e7c0171b965c07c2c6c3389c97c15203431cd)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/proto_tcp.c