]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
16 years agoBug #1955: Clarify refresh_pattern override-expire option
Henrik Nordstrom [Mon, 26 May 2008 22:28:50 +0000 (00:28 +0200)] 
Bug #1955: Clarify refresh_pattern override-expire option

override-expire applies to both Expires and CC max-age, but comments
only mention Expires..

16 years agomake dist needs trunk to be bootstrapped first
Henrik Nordstrom [Mon, 26 May 2008 07:24:25 +0000 (01:24 -0600)] 
make dist needs trunk to be bootstrapped first

16 years agoProperly dist testheaders.sh
Henrik Nordstrom [Mon, 26 May 2008 07:21:47 +0000 (01:21 -0600)] 
Properly dist testheaders.sh

16 years agoCleanups: Replace cnfig parser gotos with do-while loop.
Amos Jeffries [Fri, 23 May 2008 12:40:03 +0000 (00:40 +1200)] 
Cleanups: Replace cnfig parser gotos with do-while loop.

16 years agoCleanups: Replace a series of URN handler gotos with a simple sub-function.
Amos Jeffries [Fri, 23 May 2008 12:32:27 +0000 (00:32 +1200)] 
Cleanups: Replace a series of URN handler gotos with a simple sub-function.

16 years agoAmendment to capability debugs
Amos Jeffries [Fri, 23 May 2008 06:41:54 +0000 (18:41 +1200)] 
Amendment to capability debugs

16 years agoAuthor: Bojan Smojver <bojan@rexursive.com>
Amos Jeffries [Fri, 23 May 2008 06:28:32 +0000 (18:28 +1200)] 
Author: Bojan Smojver <bojan@rexursive.com>
Bug 2350: Memory allocation problem in restoreCapabilities(), tools.cc

Part 2 - Kernel folks are suggesting that the code in tools.cc should test
         _LINUX_CAPABILITY_VERSION_1 where possible

16 years agoSilence secondary errors on fatal shutdowns.
Amos Jeffries [Thu, 22 May 2008 12:05:45 +0000 (00:05 +1200)] 
Silence secondary errors on fatal shutdowns.

This patch causes fatal() errors to set the shutdown flag before aborting.
The result of this is that secondary errors not related to the fatal condition
but caused during the shutdown sequence no longer confuse the error traces.

It also cleans up a little broken whitespace formatting in the snmp_core.cc

16 years agoUpdate interception documentation and debugging.
Amos Jeffries [Thu, 22 May 2008 03:05:40 +0000 (15:05 +1200)] 
Update interception documentation and debugging.

Adds better documentation on effects of intercept and tproxy flags.

Alters debugging to clearly log components enabled/disabled on startup and
reconfigure of http(s)_port's using interception flags.

16 years agoAdd debugging of negative Interception result data.
root [Wed, 21 May 2008 02:47:16 +0000 (14:47 +1200)] 
Add debugging of negative Interception result data.

16 years agoBug #2350: Memory allocation problem in restoreCapabilities()
Henrik Nordstrom [Tue, 20 May 2008 20:10:48 +0000 (22:10 +0200)] 
Bug #2350: Memory allocation problem in restoreCapabilities()

16 years agoAuto-document some of http.cc
Amos Jeffries [Tue, 20 May 2008 13:29:24 +0000 (01:29 +1200)] 
Auto-document some of http.cc

16 years agoMerged from trunk
Amos Jeffries [Tue, 20 May 2008 13:26:56 +0000 (01:26 +1200)] 
Merged from trunk

16 years agoCorrect cachemgr.conf installation rule syntax errors
Henrik Nordstrom [Sat, 17 May 2008 19:28:01 +0000 (21:28 +0200)] 
Correct cachemgr.conf installation rule syntax errors

16 years agosquid_raius_auth needs to include radius-util.h not util.h
Henrik Nordstrom [Sat, 17 May 2008 19:15:05 +0000 (21:15 +0200)] 
squid_raius_auth needs to include radius-util.h not util.h

16 years agoAdded config.test to mswin_check_ad_group
Guido Serassio [Sat, 17 May 2008 11:41:47 +0000 (13:41 +0200)] 
Added config.test to mswin_check_ad_group

16 years agoUpdated mswin_check_lm_group documentation
Guido Serassio [Sat, 17 May 2008 11:37:06 +0000 (13:37 +0200)] 
Updated mswin_check_lm_group documentation

16 years agoWindows port: Added new mswin_check_ad_group external ACL helper
Guido Serassio [Sat, 17 May 2008 11:27:47 +0000 (13:27 +0200)] 
Windows port: Added new mswin_check_ad_group external ACL helper

This helper allow the lookup of users's group membership in a Windows
Active Directory domain.
It overcomes the Lan Manager limits of mswin_check_lm_group, but it can be
used only with native Windows Active Directory domains, so mswin_check_lm_group
will not removed from Squid.

16 years agoWindows port: allow build of squid_session on Windows
Guido Serassio [Sat, 17 May 2008 09:22:17 +0000 (11:22 +0200)] 
Windows port: allow build of squid_session on Windows

16 years agoAuthor: Svenx <svensven@gmail.com>
Amos Jeffries [Thu, 15 May 2008 12:35:58 +0000 (00:35 +1200)] 
Author: Svenx <svensven@gmail.com>
Bug 2223: flexible handling of x-forwarded-for

This patch adds three settings for the 'forwarded_for' option in squid.conf:

If set to "transparent", Squid will not alter the X-Forwarded-For header in any
way.

If set to "delete", Squid will delete the entire X-Forwarded-For header.

If set to "truncate", Squid will remove all existing X-Forwarded-For entries,
and place itself as the sole entry.

The old options 'on' and 'off' have been left unaltered.

16 years agoMerge from trunk
Amos Jeffries [Thu, 15 May 2008 12:34:22 +0000 (00:34 +1200)] 
Merge from trunk

16 years agoAuthor: Joshua Root <josh+squid@root.id.au>
Amos Jeffries [Thu, 15 May 2008 11:43:06 +0000 (23:43 +1200)] 
Author: Joshua Root <josh+squid@root.id.au>
Bug 2204: configure fails to detect max open files

The behaviour of setrusage has changed in Mac OS X 10.5.

16 years agoRename helpers/basic_auth/squid_radius_auth/util.* to radius-util.*
Amos Jeffries [Wed, 14 May 2008 04:04:23 +0000 (16:04 +1200)] 
Rename helpers/basic_auth/squid_radius_auth/util.* to radius-util.*

They were clashing with Squids' own include/util.h

16 years agoBoost debugging of uniqueHostname lookups
Amos Jeffries [Tue, 13 May 2008 11:23:27 +0000 (23:23 +1200)] 
Boost debugging of uniqueHostname lookups

16 years agoAdd cachemgr.conf.default for easier maintenance
Amos Jeffries [Tue, 13 May 2008 08:56:04 +0000 (20:56 +1200)] 
Add cachemgr.conf.default for easier maintenance

cachemgr.conf has for a long while been created conditionally if none
already existed, but no current new default file was added to compare
for new configuration options.

This patch reverts the behaviour to what was reportedy available in 2.5.
Adding a file named cachemgr.conf.default next to the cachemgr.conf

cachemgr.conf.default file is replaces unconditionally so that it remains
current with the most recently installed build.
cachemgr.conf itself is only created if not already present so as not to
loose local configuration changes.

16 years agoAuthor: Thomas-Martin Seck <tmseck@netcologne.de>
Amos Jeffries [Sun, 11 May 2008 13:01:38 +0000 (01:01 +1200)] 
Author: Thomas-Martin Seck <tmseck@netcologne.de>
Bug 2346: fix the passing of C(XX)FLAGS for cachemgr.cgi

cachemgr.cgi should now locate its default config file properly

16 years agoAuto-Doc Server.h and HttpReply.h
Amos Jeffries [Sun, 11 May 2008 11:37:14 +0000 (23:37 +1200)] 
Auto-Doc Server.h and HttpReply.h

16 years agoCrop old code and temporary #ifdef
Amos Jeffries [Sat, 10 May 2008 08:56:49 +0000 (20:56 +1200)] 
Crop old code and temporary #ifdef

16 years agoDependency fix
Amos Jeffries [Sat, 10 May 2008 08:39:07 +0000 (20:39 +1200)] 
Dependency fix

16 years agoBug 2223: Feature: flexible handling of x-forwarded-for
Amos Jeffries [Sat, 10 May 2008 08:34:03 +0000 (20:34 +1200)] 
Bug 2223: Feature: flexible handling of x-forwarded-for

This patch adds three settings for the 'forwarded_for' option in squid.conf:

If set to "transparent", Squid will not alter the X-Forwarded-For header in any
way.

If set to "delete", Squid will delete the entire X-Forwarded-For header.

If set to "truncate", Squid will remove all existing X-Forwarded-For entries,
and place itself as the sole entry.

The old options 'on' and 'off' have been left unaltered.

16 years agoMerge from trunk
Amos Jeffries [Sat, 10 May 2008 02:58:37 +0000 (14:58 +1200)] 
Merge from trunk

16 years agoAuthor: Finn Thain <fthain@telegraphics.com.au>
Amos Jeffries [Fri, 9 May 2008 14:27:20 +0000 (02:27 +1200)] 
Author: Finn Thain <fthain@telegraphics.com.au>
Bug 2339: segfault in MemBuf::append()

This segfault was caused by a buffer overrun in Range header processing.
The fix re-arranges the length calculations to make sense.

16 years agoAuthor: Finn Thain <fthain@telegraphics.com.au>
Amos Jeffries [Fri, 9 May 2008 14:22:32 +0000 (02:22 +1200)] 
Author: Finn Thain <fthain@telegraphics.com.au>
Bug 2332: segfault in tunnelConnectTimeout()

Fixes at least one race condition.

If tunnelConnectTimeout() is called before tunnelPeerSelectComplete(), then
tunnelState->servers will be NULL.

16 years agoAuthor: Finn Thain <fthain@telegraphics.com.au>
Amos Jeffries [Fri, 9 May 2008 14:13:10 +0000 (02:13 +1200)] 
Author: Finn Thain <fthain@telegraphics.com.au>
Bug 2323: basic auth leaks memory

- Several fixes resolving bad logic and leaks in basic auth.

16 years agoUpdate of the old TODO lists
Amos Jeffries [Fri, 9 May 2008 10:33:17 +0000 (22:33 +1200)] 
Update of the old TODO lists

16 years agoTypo in configure.in
Amos Jeffries [Fri, 9 May 2008 04:36:56 +0000 (16:36 +1200)] 
Typo in configure.in

16 years agoBug 2222 part 2: ipv4 client trying to view an ipv6 website crashes FreeBSD squid
Amos Jeffries [Thu, 8 May 2008 03:47:53 +0000 (15:47 +1200)] 
Bug 2222 part 2: ipv4 client trying to view an ipv6 website crashes FreeBSD squid

This one:
 - omits the v6-specific socket options on new addrinfo
 - correctly counts the failed connection
 - Resets the socket when a protocol error is found
 - retries without any delay

16 years agoWrap more g++ 4.3.0 located warnings
Amos Jeffries [Thu, 8 May 2008 03:37:45 +0000 (15:37 +1200)] 
Wrap more g++ 4.3.0 located warnings

16 years agoBug 2206: Build error caused by incorrect configure include file detection
Amos Jeffries [Wed, 7 May 2008 09:41:50 +0000 (03:41 -0600)] 
Bug 2206: Build error caused by incorrect configure include file detection

Adds type-definitions for the *BSD family networking OS header files which
depend on them without including the necessary definition headers themselves.

Completes fix for Bug 2196 detailed files.

16 years agoBug 2196: configure: net*/*.h present but cannot be compiled
Amos Jeffries [Wed, 7 May 2008 07:50:28 +0000 (01:50 -0600)] 
Bug 2196: configure: net*/*.h present but cannot be compiled

This moves critical net*/*.h file tests from the general location
and use testign to the *BSD special testing which accounts for
system file dependencies.

TODO: some files are still missing dependencies even with the *BSD test
      their brokenness will be fixed at a later point.

16 years agoBug #1784: access_log syslog results in blanks syslog lines between every access...
Henrik Nordstrom [Mon, 5 May 2008 10:05:47 +0000 (12:05 +0200)] 
Bug #1784: access_log syslog results in blanks syslog lines between every access log entry.

Correct earlier forwardport of Squid-2 patch. There must only be one log call
per entry..

16 years agoMake --with-large-files try to build 64-bit if possible
Henrik Nordstrom [Sat, 3 May 2008 10:12:12 +0000 (12:12 +0200)] 
Make --with-large-files try to build 64-bit if possible

--with-large-files for some reason tried to make a 32-bit build with
large file offsets even if the host supports 64-bit applications, making
--with-large-files degrade Squid capabilities on 64-bit OS:es..

16 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Fri, 2 May 2008 10:59:20 +0000 (22:59 +1200)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Bug 2254: umask support needs porting from 2.6

16 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
Amos Jeffries [Fri, 2 May 2008 10:37:01 +0000 (22:37 +1200)] 
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Bug 2308: Segmentation fault in AuthDigestUserRequest::authUser

In this patch:
 - In method AuthDigestConfig::decode just do not delete the digest_request on
errors  but use it as is in the authDigestLogUsername functions.

 - In the method AuthDigestConfig::fixHeader change the line  "int stale = 1;"
to "int stale = 0;" to make squid respond with  "stale=false" in the first
unauthenticated request of web client.

16 years agoOops. Broke make dist with strnstr.h
Amos Jeffries [Fri, 2 May 2008 09:54:27 +0000 (03:54 -0600)] 
Oops. Broke make dist with strnstr.h

16 years agoWindows port: allow build of squid_radius_auth on Windows
Guido Serassio [Thu, 1 May 2008 17:23:50 +0000 (19:23 +0200)] 
Windows port: allow build of squid_radius_auth on Windows

Experimental - correct helper functionality still NOT TESTED

16 years agoWindows port: Add support for the Windows machine DNS domain, and also automatically...
Guido Serassio [Thu, 1 May 2008 17:12:56 +0000 (19:12 +0200)] 
Windows port: Add support for the Windows machine DNS domain, and also automatically derived default domain

This patch adds the capacity to get the machine DNS domain from the registry, similar to
search but only accepting a single domain.

In addition it adds support for automatically deriving the domain from
the fully qualified hostname.

Also fixed some memory leaks during the DNS configuration parse in the registry.

16 years agoRemoved the advertisement clause from BSD license
Guido Serassio [Thu, 1 May 2008 16:19:06 +0000 (18:19 +0200)] 
Removed the advertisement clause from BSD license

According to the new revised (3-clause) BSD license:
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
the advertisement clause (3) of old (4-clause) BSD license can
be deleted.

Also added forgotten reference to lib/strnstr.cc into CREDITS

16 years agoWindows port: Return the effective system pagesize in getpagesize()
Guido Serassio [Thu, 1 May 2008 16:05:05 +0000 (18:05 +0200)] 
Windows port: Return the effective system pagesize in getpagesize()

16 years agoImport reconfigure cachemgr action from NT Devel branch
Guido Serassio [Thu, 1 May 2008 15:59:41 +0000 (17:59 +0200)] 
Import reconfigure cachemgr action from NT Devel branch

This patch add the reconfigure restricted action to Cache Manager.

16 years agoFix make check error when COSS is enabled
Guido Serassio [Thu, 1 May 2008 15:35:17 +0000 (17:35 +0200)] 
Fix make check error when COSS is enabled

16 years agoAuthhor: Marin Stavrev <mstavrev@gmail.com>
Amos Jeffries [Thu, 1 May 2008 00:29:59 +0000 (12:29 +1200)] 
Authhor: Marin Stavrev <mstavrev@gmail.com>
ZPH (Zero Penalty Hit) QOS features.

Adds --enable-zph-qos options to turn on the following:

 - Allows you to select a TOS/Diffserv value to mark local hits.

 - Allows you to select a TOS/Diffserv value to mark peer hits.

 - Allows you to selectively set only sibling or sibling+parent requests

 - Allows any HTTP response towards clients will
   have the TOS value of the response comming from the remote
   server masked with the value of zph_preserve_miss_tos_mask.
   For this to work correctly, you will need to patch your linux
   kernel with the TOS preserving ZPH patch.
   The kernel patch can be downloaded from http://zph.bratcheda.org

 - Allows you to mask certain bits in the TOS received from the
   remote server, before copying the value to the TOS send towards
   clients.

16 years agoAuthor: Peter Hidas <peter.hidas@safeland.hu>
Amos Jeffries [Wed, 30 Apr 2008 13:01:26 +0000 (01:01 +1200)] 
Author: Peter Hidas <peter.hidas@safeland.hu>
Bug 2331: ntlm_auth helper resolves DC hostname to 0.

16 years agoBoost debug outputs in comm.
Amos Jeffries [Tue, 29 Apr 2008 03:54:54 +0000 (15:54 +1200)] 
Boost debug outputs in comm.

16 years agoImport strnstr from FreeBSD sources. Needed for some string-safe operations.
Amos Jeffries [Sat, 26 Apr 2008 15:21:03 +0000 (03:21 +1200)] 
Import strnstr from FreeBSD sources. Needed for some string-safe operations.

strnstr() is not provided on all OS (Linux with gcc 3.x for one).
And some OS are known to bundle an unsafe version (MacOS X 10.4 has a buffer overrun)

So code should use the function named squid_strnstr() and auto-tools will
test to see if the OS provided version is usable.

16 years agoFix more Gcc 4.x warnings.
Amos Jeffries [Sat, 26 Apr 2008 12:29:34 +0000 (00:29 +1200)] 
Fix more Gcc 4.x warnings.

16 years agoBug 2297: file uploads (RFC1867) fail with "error:double-CR"
Amos Jeffries [Fri, 25 Apr 2008 10:44:27 +0000 (22:44 +1200)] 
Bug 2297: file uploads (RFC1867) fail with "error:double-CR"

Replaces strstr with strnstr to limit search area.

16 years agoBug 2321 : Range tests failing.
Amos Jeffries [Fri, 25 Apr 2008 08:36:48 +0000 (20:36 +1200)] 
Bug 2321 : Range tests failing.

16 years agoBundle testheaders.sh with make dist
Amos Jeffries [Thu, 24 Apr 2008 10:30:31 +0000 (22:30 +1200)] 
Bundle testheaders.sh with make dist

16 years agoTransparent Interception remodelling.
Amos Jeffries [Thu, 24 Apr 2008 05:33:13 +0000 (17:33 +1200)] 
Transparent Interception remodelling.

This patch merges part 2 of the TPROXY-related updates.

 - Makes interception handling flags and options always-present
 - Updates squid.conf http_port options for clarity
 - Builds structure for sequential lookup of multiple interception methods
 - Performs sequential lookups for IPFW and multiple Netfilter targets
   if Squid configured to enable those transparency methods.
 - Pulls most of the TPROXYv2 related code out of Comm into IPInterception

IPFW changes are still experimental, but Netfilter targets have been tested.

TODO: depending on the anoyance levels a better logging method for NAT
      failures may need to be implemented. The existing methods of logging
      one-per-N seconds, for all lookup methods may prove annoying.

16 years agoUpdate affected documentation
Amos Jeffries [Thu, 24 Apr 2008 05:31:36 +0000 (17:31 +1200)] 
Update affected documentation

16 years agoRollback rev 8955 - patch already applied
Amos Jeffries [Tue, 22 Apr 2008 12:17:55 +0000 (00:17 +1200)] 
Rollback rev 8955 - patch already applied

16 years agoWrap ESI headers for .h testing on systems without Expat or XML libraries
Amos Jeffries [Tue, 22 Apr 2008 11:49:48 +0000 (23:49 +1200)] 
Wrap ESI headers for .h testing on systems without Expat or XML libraries

16 years agoImport FileSystem component API documentation. (really)
Amos Jeffries [Mon, 21 Apr 2008 12:52:20 +0000 (00:52 +1200)] 
Import FileSystem component API documentation. (really)

16 years agoDoxygen identified cleanup in function declaration
Amos Jeffries [Mon, 21 Apr 2008 12:36:22 +0000 (00:36 +1200)] 
Doxygen identified cleanup in function declaration

16 years agoImport FileSystem component API documentation.
Amos Jeffries [Mon, 21 Apr 2008 12:20:07 +0000 (00:20 +1200)] 
Import FileSystem component API documentation.

16 years agoImport remaining scraps of auto-docs branch code cleanups
Amos Jeffries [Mon, 21 Apr 2008 12:05:23 +0000 (00:05 +1200)] 
Import remaining scraps of auto-docs branch code cleanups

16 years agoMerged from trunk
Amos Jeffries [Sat, 19 Apr 2008 04:49:16 +0000 (16:49 +1200)] 
Merged from trunk

16 years agoBUg 2318 : compilation issue in some compilers
Amos Jeffries [Fri, 18 Apr 2008 04:41:27 +0000 (16:41 +1200)] 
BUg 2318 : compilation issue in some compilers

16 years agoAvoid segfaults when scheduling an async call for a non-existent job.
Alex Rousskov [Thu, 17 Apr 2008 05:50:09 +0000 (23:50 -0600)] 
Avoid segfaults when scheduling an async call for a non-existent job.

Scheduling a call for invalidated or non-existent job should be a no-op
because (a) it simplifies the code and (b) the job may disappear while
the call is queued so checking job status at the call time is
pointless from the correctness point of view.

Existing code already relies on this guarantee, but apparently not too much.

The bug was in a JobDialer. I have not yet verified whether other dialers
need a similar fix.

16 years agoFixed and polished autoconsumption mode.
Alex Rousskov [Thu, 17 Apr 2008 05:44:45 +0000 (23:44 -0600)] 
Fixed and polished autoconsumption mode.

Fixed: We need to start autoconsuming when new data is appended and we
have not started (but enabled autoconsumpiton) before.

Polished: When notifying a consumer, checking whether mustAutoConsume is
set is pointless as it has no effect on consumer (if any). This check was
probably a leftover from pre-BodySink days.

16 years agoAdd support for the resolv.conf domain directive, and also automatically derived...
Henrik Nordstrom [Wed, 16 Apr 2008 00:32:34 +0000 (02:32 +0200)] 
Add support for the resolv.conf domain directive, and also automatically derived default domain

this patch adds the domain resolv.conf directive, similar to search but
only accepting a single domain.

In addition it adds support for automatically deriving the domain from
the fully qualified hostname.

16 years agoFix out-of-tree builds after the inclusion of libltdl
Henrik Nordstrom [Wed, 16 Apr 2008 00:16:12 +0000 (02:16 +0200)] 
Fix out-of-tree builds after the inclusion of libltdl

16 years agoSpelling correction
Henrik Nordstrom [Wed, 16 Apr 2008 00:15:07 +0000 (02:15 +0200)] 
Spelling correction

16 years agoNo need to bootstrap trunk. aututool files is not under revision control in trunk
Henrik Nordstrom [Wed, 16 Apr 2008 00:13:25 +0000 (02:13 +0200)] 
No need to bootstrap trunk. aututool files is not under revision control in trunk

16 years agoFix snapshots after the autotool derived files were cleaned from trunk
Henrik Nordstrom [Tue, 15 Apr 2008 21:07:55 +0000 (15:07 -0600)] 
Fix snapshots after the autotool derived files were cleaned from trunk

16 years agoDo not bootstrap lib/libLtdl. Better to fix the libtool installation than working...
Henrik Nordstrom [Tue, 15 Apr 2008 20:53:08 +0000 (14:53 -0600)] 
Do not bootstrap lib/libLtdl. Better to fix the libtool installation than working around it. (done on squid-cache.org)

16 years agoAdd x86_64 support to XPROF_STATS
Henrik Nordstrom [Mon, 14 Apr 2008 21:29:38 +0000 (23:29 +0200)] 
Add x86_64 support to XPROF_STATS

16 years agoBug #2310: Incorrect default time/date log format
Henrik Nordstrom [Mon, 14 Apr 2008 21:03:20 +0000 (23:03 +0200)] 
Bug #2310: Incorrect default time/date log format

The %tl and %tg logformat tags is meant to use the same date format as
Apache/NCSA, but in Squid-3 there was a space instead of : between the
date and time.

This is not seen in Squid-2.

16 years agoAdded dummy eCAP files to make "make dist" happy.
Alex Rousskov [Mon, 14 Apr 2008 16:34:34 +0000 (10:34 -0600)] 
Added dummy eCAP files to make "make dist" happy.

16 years agoBootstrap lib/libLtld when running top-level bootstrap.sh.
Alex Rousskov [Mon, 14 Apr 2008 16:18:00 +0000 (10:18 -0600)] 
Bootstrap lib/libLtld when running top-level bootstrap.sh.

This appears necessary because libtoolize-generated lib/libLtdl/Makefile.in is
probably made with an older automake version and refers to a non-existent
mkinstalldirs script. Yet, bootsrapping libLtdl produces warnings (or
non-fatal errors) so I am not sure it is the right thing to do long-term.

16 years agoFix 'make dist' breakage created by header testing.
Amos Jeffries [Mon, 14 Apr 2008 13:51:31 +0000 (01:51 +1200)] 
Fix 'make dist' breakage created by header testing.

16 years agoTPROXY v4 support upgrade (part 1 of 2)
Amos Jeffries [Mon, 14 Apr 2008 06:30:27 +0000 (18:30 +1200)] 
TPROXY v4 support upgrade (part 1 of 2)

Part 1 adds complete TPROXYv4 capabilities to Squid.
The alterations are rather superficially tacked into the netfilter support.

Polish for this feature involves some rather intrusive alterations to
transparency which are still undergoing testing. That is part 2.

A temporary configure option --enable-linux-tproxy4 is provided as part of
this commit to enable the TPROXY v4 code. Part 2 will remove this option
again in favour of squid.conf transparency controls.

16 years agoCleanup Debug include sequence.
Amos Jeffries [Mon, 14 Apr 2008 00:20:51 +0000 (12:20 +1200)] 
Cleanup Debug include sequence.

16 years agoFix build error on Irix.
Guido Serassio [Sun, 13 Apr 2008 17:01:15 +0000 (19:01 +0200)] 
Fix build error on Irix.

On Irix the inclusion of sstream defines assert(), so the build fails for
a redefinition error.
Just include Debug.h as last to fix the problem.

16 years agoMerged from trunk.
Amos Jeffries [Sun, 13 Apr 2008 13:04:31 +0000 (01:04 +1200)] 
Merged from trunk.

16 years agoUpdate auto-documentation generatino so .dyn files work again
Amos Jeffries [Sun, 13 Apr 2008 12:04:17 +0000 (00:04 +1200)] 
Update auto-documentation generatino so .dyn files work again

16 years agoUpdate auto-docs text for IPAddress class
Amos Jeffries [Sat, 12 Apr 2008 11:48:25 +0000 (23:48 +1200)] 
Update auto-docs text for IPAddress class

16 years agoeCAP support, part 1: Loadable modules and ICAP-independent Squid core.
Alex Rousskov [Sat, 12 Apr 2008 04:52:49 +0000 (22:52 -0600)] 
eCAP support, part 1: Loadable modules and ICAP-independent Squid core.

The first part of eCAP work includes (a) initial support for loadable
modules and (b) removing ICAP from main Squid sources, replaced with the
adaptation API that does not depend on a specific adaptation mechanism.

The patch does not contain significant changes to main Squid sources.
Generic adaptation API should minimize significant core changes going
forward. Details are below. For a low-level change log, see the eCAP bzr
branch at https://code.launchpad.net/~rousskov/squid/ecap

Configuration and features:

  Added adaptation_service_set squid.conf option, deprecating
  icap_class. The new option has more accurate documentation and does
  not depend on the adaptation protocol so one can group eCAP and ICAP
  services.

  Added adaptation_service_set squid.conf option, deprecating
  icap_access. The new option has more accurate documentation and does
  not depend on the adaptation protocol so one can mix-and-match eCAP
  and ICAP ACL rules.

  Added loadable_modules squid.conf option to specify what shared
  libraries to load dynamically. The support is based on libtool's ltdl
  convenience library and is enabled by default. It can be disabled
  using --disable-loadable-modules.  Loadable modules are needed for
  eCAP, but loadable_modules code deals with generic module
  manipulation, independent from eCAP support. Squid does not yet
  communicate with the loaded modules. TODO: support cachemgr
  reporting and reconfiguration of modules.

Internals:

  Squid core no longer knows about ICAP: General message adaptation code
  has been moved from src/ICAP to src/adaptation/. The only connection
  between main Squid code and ICAP is squid.conf parser and a few
  enabling lines in main.cc. USE_ADAPTATION is enabled if ICAP_CLIENT or
  USE_ECAP is enabled. TODO: Make adaptation comments, debug, and error
  messages in main Squid code ICAP-neutral. This has not been done yet
  to reduce VCS conflicts.

  The src/ICAP/ directory now has its own Makefile (so does the new
  src/adaptation). TODO: Should ICAP and eCAP directories be moved
  inside adaptation/?

  The eCAP directory and the --enable-ecap option have been added, but
  they should not be used yet.

  Added an adaptation service group API to support groups of services.
  Current code supports service sets and single-service groups. Sets
  provide a way to group interchangeable services together so that one
  (the "best" available) service is applied to the message. A
  single-service group is an internal feature to allow user to mix
  service and group names in squid.conf ACLs.  TODO: support service
  chains (as a service group) and perhaps group of groups?

  Implemented delayed creation of adaptation services. We used to create
  ICAPServiceRep objects when parsing the configuration file.
  Create-as-you-parse is imperfect for several reasons, especially if
  the services are dynamically loaded as is the case with eCAP. We now
  remember the service configuration and then create the actual service
  object _after_ the configuration has been parsed and loadable modules,
  if any, have been loaded.

  The bootstrap.sh script has been updated to generate ltdl library
  using libtoolize and move it to lib/libLtdl (except for the standard
  copyright file). With libtool version 2, the move will be supported by
  libtoolize itself.  The lib/libLtdl directory and libtool.m4 file are
  not in VCS.

16 years agoShift candidates when the top candidate does not match
Alex Rousskov [Sat, 12 Apr 2008 04:16:45 +0000 (22:16 -0600)] 
Shift candidates when the top candidate does not match
Supply reply for reply-based ACLs
Polished debugging

16 years agoMerged from trunk.
Alex Rousskov [Sat, 12 Apr 2008 03:14:51 +0000 (21:14 -0600)] 
Merged from trunk.

16 years agoMerge from trunk
Alex Rousskov [Fri, 11 Apr 2008 23:46:30 +0000 (17:46 -0600)] 
Merge from trunk

16 years agoReplace cnfig parser gotos with do-while loop.
Amos Jeffries [Fri, 11 Apr 2008 04:49:34 +0000 (16:49 +1200)] 
Replace cnfig parser gotos with do-while loop.

16 years agoReplace a series of URN handler gotos with a simple sub-function.
Amos Jeffries [Fri, 11 Apr 2008 04:47:26 +0000 (16:47 +1200)] 
Replace a series of URN handler gotos with a simple sub-function.

16 years agodeprecate some .h includes we don;t appear to need
Amos Jeffries [Fri, 11 Apr 2008 03:33:42 +0000 (15:33 +1200)] 
deprecate some .h includes we don;t appear to need

16 years agoNeed to define time_t in the header now.
Amos Jeffries [Fri, 11 Apr 2008 03:29:02 +0000 (15:29 +1200)] 
Need to define time_t in the header now.

16 years agoRestore old tproxy enabling back to original option name.
Amos Jeffries [Fri, 11 Apr 2008 02:17:14 +0000 (14:17 +1200)] 
Restore old tproxy enabling back to original option name.

version 4 now integrated with --enable-linux-netfilter seamlessly.
The old option --enable-linux-tproxy is now semi-oficcially deprecated,
as the version is obsolete but still supported by squid for legacy systems.

16 years agoupdate changeLog
Amos Jeffries [Fri, 11 Apr 2008 02:14:38 +0000 (14:14 +1200)] 
update changeLog

16 years agoupdate documentation
Amos Jeffries [Fri, 11 Apr 2008 02:11:22 +0000 (14:11 +1200)] 
update documentation

16 years agodebugs cleanup.
Amos Jeffries [Fri, 11 Apr 2008 02:00:06 +0000 (14:00 +1200)] 
debugs cleanup.