BUILD: tcp: define SOL_TCP when only IPPROTO_TCP exists
authorWilly Tarreau <w@1wt.eu>
Wed, 10 Aug 2016 19:09:24 +0000 (21:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 10 Aug 2016 19:11:38 +0000 (21:11 +0200)
commit9d87ca0685fe878b1cfa0480610be1bee7738130
tree25f11533f5617c6754d1db17f694fb7b8e2d3998
parent64345aaaf0dc2739983902cce4667089ad926a49
BUILD: tcp: define SOL_TCP when only IPPROTO_TCP exists

FreeBSD prefers to use IPPROTO_TCP over SOL_TCP, just like it does
with their *_IP counterparts. It's worth noting that there are a few
inconsistencies between SOL_TCP and IPPROTO_TCP in the code, eg on
TCP_QUICKACK. The two values are the same but it's worth applying
what implementations recommend.

No backport is needed, this was uncovered by the recent tcp_info stuff.
include/common/compat.h