Closed trozensztrauch closed 6 years ago
[ 4%] Building C object CMakeFiles/neat-static.dir/neat_addr.c.o
/usr/home/buildbot/bbs-neat/freebsd-head/build/neat_core.c:5849:28: error: use of undeclared identifier 'SOL_IP'
if (setsockopt(fd, SOL_IP, IP_TRANSPARENT, &enable, sizeof(int)) != 0) {
^
/usr/home/buildbot/bbs-neat/freebsd-head/build/neat_core.c:5849:36: error: use of undeclared identifier 'IP_TRANSPARENT'
if (setsockopt(fd, SOL_IP, IP_TRANSPARENT, &enable, sizeof(int)) != 0) {
^
/usr/home/buildbot/bbs-neat/freebsd-head/build/neat_core.c:5849:28: error: use of undeclared identifier 'SOL_IP'
if (setsockopt(fd, SOL_IP, IP_TRANSPARENT, &enable, sizeof(int)) != 0) {
^
/usr/home/buildbot/bbs-neat/freebsd-head/build/neat_core.c:5849:36: error: use of undeclared identifier 'IP_TRANSPARENT'
if (setsockopt(fd, SOL_IP, IP_TRANSPARENT, &enable, sizeof(int)) != 0) {
^
Can you fix it?
For the purpose of transparent proxing, this PR adds a possibility to specify 'tproxy' property (true/false) for a listening flow. When such a property is specified IP_TRANSPARENT socket option is set for underlying socket, which allows the socket to accept connections for non-local IPs.