]> git.ipfire.org Git - thirdparty/squid.git/commit - src/ip/Intercept.cc
Auto-detect the amount of TPROXY support available.
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 15 Sep 2009 11:59:51 +0000 (23:59 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 15 Sep 2009 11:59:51 +0000 (23:59 +1200)
commit263f84f0b10fce36ff6e147d91677328effe20c9
treede5af93c94d2db46ca21c3989661f12944c78b94
parent8c97fc7bd89aacd768856eae5dff5879db4ea385
Auto-detect the amount of TPROXY support available.

Uses the configured port address type to determine the level of testing
done. Systems with IPv4-only TPROXY (kernel 2.6.28 to 2.6.3*) will have
their ports reduced to IPv4-only, and those with IPv6 support will see
the port open as IPv6. This is done a run-time to cater for patched kernels
and kernel upgrades underneath Squid.
src/cache_cf.cc
src/ip/IpIntercept.cc
src/ip/IpIntercept.h