This patch is a variation of the TOS marking ZPH patch with a modification that permits SQUID to mark HIT responses acquired by parent/sibling cache engines as ordinary local HITs. This gives opportunities for better QoS solutions in a hierarchical caching topologies.

In all other cases this TOS patch version is essentially the same as the one supplied by Venkatesh Reddy (so you do not need to upgrade if you are using it). Anyway, if you are going to use the TOS patch, I recomend this one, because it is generally more universal.

Enough words, grab it:
squid-2.5.STABLE4-TOS_Hit_sibling.patch (Works with STABLE3 and STABLE4)
squid-2.5.STABLE4-TOS_Hit_sibling_20040219.patch - For latest STABLE4 builds


1. Download SQUID 2.5 STABLE source (squid-2.5.STABLE-3 and STABLE-4 are tested to work with this patch).
2. Go to your favourite temporary directory and decompress the source:
tar -zxvf squid-2.5.STABLE4.tar.gz

or, for the bzip2 archive:

tar -jxvf squid-2.5.STABLE4.tar.bz2
3. Change to SQUID's source directory and apply the patch:
cd squid-2.5.STABLE4/src
patch < squid-2.5.STABLE4-TOS_Hit_sibling.patch


Credit for this contribution goes to Evgeni Gechev.