From: Amos Jeffries Date: Sat, 29 Mar 2008 11:33:37 +0000 (+1200) Subject: Change SOL_IP at Laszlo's direction. X-Git-Tag: BASIC_TPROXY4~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef88b51dd477a713bddaf8fcf3f07f6141ff7728;p=thirdparty%2Fsquid.git Change SOL_IP at Laszlo's direction. --- diff --git a/src/comm.cc b/src/comm.cc index 43b0661265..3d7bf1af15 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -631,11 +631,11 @@ void comm_set_transparent(int fd, int tos) { #if LINUX_TPROXY4 - if (setsockopt(fd, IPPROTO_IP, IP_TRANSPARENT, (char *) &tos, sizeof(int)) < 0) { - debugs(50, 1, "comm_open: setsockopt(IP_TRANSPARENT) on FD " << fd << ": " << xstrerror()); + 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()); } #else - debugs(50, 0, "WARNING: comm_open: setsockopt(IP_TRANSPARENT) not supported on this platform"); + debugs(50, DBG_CRITICAL, "WARNING: comm_open: setsockopt(IP_TRANSPARENT) not supported on this platform"); #endif /* sockopt */ }