]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
17 years agoImproved const correctness in IPAddress.
Amos Jeffries [Tue, 24 Jun 2008 11:20:15 +0000 (23:20 +1200)] 
Improved const correctness in IPAddress.

17 years agoBug 2383: part 1: Typo in v6 special-case if-def
Amos Jeffries [Tue, 24 Jun 2008 11:13:03 +0000 (23:13 +1200)] 
Bug 2383: part 1: Typo in v6 special-case if-def

Typo in IPV6_SPECIAL_V4MAPPING / IPV6_SPECIAL_MAPPED caused the #if to
never be compiled.

17 years agoAuthor: Mark Nottingham <mnot@pobox.com>
Amos Jeffries [Tue, 24 Jun 2008 01:19:31 +0000 (13:19 +1200)] 
Author: Mark Nottingham <mnot@pobox.com>
Bug #2388: acl documentation cleanup

Squid.conf for ACL has a few small errors that might lead to confusion; this
fixes them and makes it a bit more consistent.

17 years agoBug 1566 (also bug 975): esi:include aborts with lock assert
Amos Jeffries [Fri, 20 Jun 2008 05:14:34 +0000 (17:14 +1200)] 
Bug 1566 (also bug 975): esi:include aborts with lock assert

Proper fix requires callers inserting HTTPMSGLOCK() when the base rep
pointers are set, and HTTPMSGUNLOCK() macros when done. The lock/unlock
mechanism will take care of garbage collection in the background if used
properly.

The function this patches has no need to perform any of that itself
either way (it's a * not a ** ptr parameter so _cannot_ be safely deleted).

I'm cementing the temporary fix for 975 and 1566 as a permanent one and
documenting the correct requirements of the functions callers to prevent
memory leaks.

If leaks are found it will be separate bugs in the calling code related
to bad refcounting.

17 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Fri, 20 Jun 2008 04:43:01 +0000 (16:43 +1200)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Bug #425 fix: purge matching entries on PUT, POST, and DELETE requests.

This patch focuses on purging URLs in Location and Content-Location headers
of PUT, POST, and DELETE responses.

Purging Request-URIs was already supported for PUT and DELETE, but needed
polishing. I moved all code related to method-based purging into one Server
method and outside the neighbors_do_private_keys guard (and store entry key is
private guard). We may purge more related entries than before.

I also implemented Amos' TODO to purge related entries when receiving a
request with an unknown request method. Again, we may now purge more related
entries than before.

My primary concern about the polishing part of the change is that the old code
used to check that the cache entry being purged is not the current entry:
        assert(e != pe);
The new code does not check for that but appears to work in my limited tests.
I am not quite sure why we needed that check if all purging methods are not
cachable anyway. Perhaps it is unsafe to call e->release() for some entries?

TODO: We cannot find Vary-controlled entries by URL and, hence, we cannot
purge them, right?

TODO: Optimize method category "search" in HttpRequestMethod by using
precomputed method_id:category maps.

17 years agoBug 2384: Assertion failed on ESI page.
Amos Jeffries [Fri, 20 Jun 2008 03:31:58 +0000 (15:31 +1200)] 
Bug 2384: Assertion failed on ESI page.

ESI was deleting its reference to child HTTP requests instead of unlocking
them. Even if they were in use elsewhere.

TODO: A better approach may be to cancel the dependent child request
entirely and close its resources down in a chain-reaction.

17 years agoNetfilter headers not detected properly.
Amos Jeffries [Thu, 19 Jun 2008 12:48:04 +0000 (00:48 +1200)] 
Netfilter headers not detected properly.

ip(6)tables v1.4.0 was released with a small bug in its header dependency.
This caused our configure checks for its usability to fail.

Also a mismatch between the code #if .. #endif and configure definitions
caused some pre-compiler logic failures on GCC 4.3.

This fixes both issues and makes Squid operable again when built against
Netfilter xtables v1.4.0

17 years agoCorrect spelling of WCCPv2 dst_port_hash to match the source
Henrik Nordstrom [Thu, 19 Jun 2008 12:23:09 +0000 (14:23 +0200)] 
Correct spelling of WCCPv2 dst_port_hash to match the source

17 years agoReject ridiculously large ASN.1 lengths
Henrik Nordstrom [Wed, 18 Jun 2008 18:57:54 +0000 (20:57 +0200)] 
Reject ridiculously large ASN.1 lengths
------------- This line and the following will be ignored --------------

modified:
  snmplib/asn1.c

17 years agoFix SNMP reporting of counters with a value >= 0xFF800000
Henrik Nordstrom [Wed, 18 Jun 2008 18:49:32 +0000 (20:49 +0200)] 
Fix SNMP reporting of counters with a value >= 0xFF800000

The ASN.1 encoding of unsigned integers incorrectly compressed the value
as if it was a signed integer, truncating leading 0xFF octest, causing
0xFF800000 to be send ax 0x800000, 0xFFFF8000 as 0x8000 etc..

17 years agoAuthor: JPP <jpp1@frws.com>
Amos Jeffries [Tue, 17 Jun 2008 10:30:07 +0000 (22:30 +1200)] 
Author: JPP <jpp1@frws.com>
logformat docs contain extra whitespace

They also failed to mention that the displayed formats are built-in and
do not need to be defined.

17 years agoNo need to snapshot squid-2.6 any more
Henrik Nordstrom [Sun, 15 Jun 2008 04:56:36 +0000 (22:56 -0600)] 
No need to snapshot squid-2.6 any more

17 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
Amos Jeffries [Fri, 13 Jun 2008 14:30:53 +0000 (02:30 +1200)] 
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Bug 2206: no Proxy-Authenticate header in 407 responses

Proper handling of Hop-By-Hop headers according to RFC2616
(drop them!) special handling given to Auth headers on pass-thru cases.

17 years agoSync ChangeLog with 3.0 and current content
Amos Jeffries [Fri, 13 Jun 2008 14:05:44 +0000 (02:05 +1200)] 
Sync ChangeLog with 3.0 and current content

17 years agoBug 2323 (again): basic auth leaks memory
Amos Jeffries [Fri, 13 Jun 2008 13:36:53 +0000 (01:36 +1200)] 
Bug 2323 (again): basic auth leaks memory

This round was caused by a few missing unlocks causing objects to be
incorrectly identified as in-use during garbage collection.

Future cleanups really need to make these objects true RefCounted.

17 years agoAuthor: Mike Mitchell <Mike.Mitchell@sas.com>
Amos Jeffries [Thu, 12 Jun 2008 12:49:29 +0000 (00:49 +1200)] 
Author: Mike Mitchell <Mike.Mitchell@sas.com>
Bug #2241: weights not applied properly in round-robin peer selection

17 years agoVarious bugs - GCC 4.3 detected
Amos Jeffries [Thu, 12 Jun 2008 12:36:31 +0000 (00:36 +1200)] 
Various bugs - GCC 4.3 detected

17 years agoCleanup parenthesis and formatting in some ZPH code.
Amos Jeffries [Wed, 11 Jun 2008 01:39:05 +0000 (13:39 +1200)] 
Cleanup parenthesis and formatting in some ZPH code.

17 years agoTypo in documentation
Amos Jeffries [Mon, 9 Jun 2008 02:45:44 +0000 (14:45 +1200)] 
Typo in documentation

17 years agoAuthor: Tsantilas Christos <chtsanti@users.sourceforge.net>
Amos Jeffries [Mon, 9 Jun 2008 01:58:19 +0000 (13:58 +1200)] 
Author: Tsantilas Christos <chtsanti@users.sourceforge.net>
update to follow_x_forwarded_for

Small update to fix compile error when XFF not enabled.

17 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Sat, 7 Jun 2008 05:20:05 +0000 (17:20 +1200)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Bug 1628: Port follow_x_forwarded_for from 2.6

17 years agoPolicy change for negative_ttl
Amos Jeffries [Thu, 5 Jun 2008 12:01:09 +0000 (00:01 +1200)] 
Policy change for negative_ttl

1) wraps all negative_ttl code to now require --enable-http-violations

2) Makes negative_ttl when used, only apply to cached objects without explicit
neg-TTL information.

3) Changes default value to 0, from the previous setting at 5 minutes.

4) Alters negative_ttl documentation to cover the above behavior changes

17 years agoUpdate ACL docs
Amos Jeffries [Thu, 5 Jun 2008 03:54:46 +0000 (15:54 +1200)] 
Update ACL docs

- Some regex types were missing -i mentions.
- Altered auth type to mention intercept alongside transparent
  now that they are distinct in squid
- Also cosmetic re-order of a few items to provide a some type grouping

17 years agoBasic Auth auto-docs and debugs cleanups.
Amos Jeffries [Sun, 1 Jun 2008 10:48:11 +0000 (22:48 +1200)] 
Basic Auth auto-docs and debugs cleanups.

17 years agoFix possible buffer overrun in rfc1738 encoder
Amos Jeffries [Sun, 1 Jun 2008 10:25:47 +0000 (22:25 +1200)] 
Fix possible buffer overrun in rfc1738 encoder

17 years agoMake cachemgr.cgi protocol agnostic in IPv6-mode.
Amos Jeffries [Sun, 1 Jun 2008 09:11:51 +0000 (21:11 +1200)] 
Make cachemgr.cgi protocol agnostic in IPv6-mode.

17 years agoSimplify linux capabilities version check to avoid repeated #ifdefs cluttering the...
Henrik Nordstrom [Fri, 30 May 2008 15:29:10 +0000 (17:29 +0200)] 
Simplify linux capabilities version check to avoid repeated #ifdefs cluttering the code

17 years agoBug 2364: Add note that negative_ttl is a HTTP violation
Amos Jeffries [Thu, 29 May 2008 02:26:55 +0000 (14:26 +1200)] 
Bug 2364: Add note that negative_ttl is a HTTP violation

17 years agoBug 2358: FD_SIZELIMIT redefined FBSD 7.0
Amos Jeffries [Tue, 27 May 2008 14:01:49 +0000 (02:01 +1200)] 
Bug 2358: FD_SIZELIMIT redefined FBSD 7.0

config.h is still REQUIRED minimum first include for any .c/.cc file
even if the old squid.h can be removed.

Why?  the portability code is needed!

17 years agoBug 2358: FD_SIZELIMIT redefined FBSD 7.0
Amos Jeffries [Tue, 27 May 2008 13:29:18 +0000 (01:29 +1200)] 
Bug 2358: FD_SIZELIMIT redefined FBSD 7.0

config.h is still REQUIRED minimum first include for any .c/.cc file
even if the old squid.h can be removed.

Why?  the portability code is needed!

17 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..

17 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

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

17 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.

17 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.

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

17 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

17 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

17 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.

17 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.

17 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()

17 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

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

17 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

17 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

17 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

17 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

17 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.

17 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

17 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.

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

17 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.

17 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

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

17 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.

17 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

17 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

17 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

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

17 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.

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

17 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.

17 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.

17 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.

17 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

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

17 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

17 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

17 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.

17 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.

17 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..

17 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..

17 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

17 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.

17 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

17 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

17 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.

17 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

17 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()

17 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.

17 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

17 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.

17 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.

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

17 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.

17 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.

17 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.

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

17 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

17 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.

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

17 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

17 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

17 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)

17 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

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

17 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

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

17 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

17 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.