From: Amos Jeffries Date: Sat, 29 Mar 2008 11:38:28 +0000 (+1200) Subject: Experiment re-setting the IP_TRANSPARENT flag after accept() X-Git-Tag: BASIC_TPROXY4~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=72d57dea1748b3e20ceaa4e3fb91b40265637aa9;p=thirdparty%2Fsquid.git Experiment re-setting the IP_TRANSPARENT flag after accept() --- diff --git a/src/comm.cc b/src/comm.cc index 3d7bf1af15..a7e7ff1db5 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1319,6 +1319,12 @@ comm_old_accept(int fd, ConnectionDetail &details) commSetNonBlocking(sock); +#if LINUX_TPROXY4 + /* AYJ: do we need to set this again on every accept? */ + if(fd_table[fd].flags.tproxy == 1) + comm_set_transparent(fd, 0); +#endif + PROF_stop(comm_accept); return sock; }