From ef88b51dd477a713bddaf8fcf3f07f6141ff7728 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 29 Mar 2008 23:33:37 +1200 Subject: [PATCH] Change SOL_IP at Laszlo's direction. --- src/comm.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 */ } -- 2.47.2