Also the TOS for IP_TRANSPARENT is apparently always '1'
} else if (strcmp(token, "tproxy") == 0) {
s->tproxy = 1;
+ s->transparent = 1;
need_linux_tproxy = 1;
#if USE_IPV6
/* INET6: until transparent REDIRECT works on IPv6 SOCKET, force wildcard to IPv4 */
}
void
-comm_set_transparent(int fd, int tos)
+comm_set_transparent(int fd)
{
#if LINUX_TPROXY4
+ int tos = 1;
if (setsockopt(fd, SOL_IP, IP_TRANSPARENT, (char *) &tos, sizeof(int)) < 0) {
debugs(50, DBG_IMPORTANT, "comm_open: setsockopt(IP_TRANSPARENT) on FD " << fd << ": " << xstrerror());
}