]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Change SOL_IP at Laszlo's direction.
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 29 Mar 2008 11:33:37 +0000 (23:33 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 29 Mar 2008 11:33:37 +0000 (23:33 +1200)
src/comm.cc

index 43b0661265a4325cf86880591c6f83078838deea..3d7bf1af151eb5ded7cbed10e9f1e4268a1f6718 100644 (file)
@@ -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 */
 }