]> git.ipfire.org Git - thirdparty/squid.git/commit
Log TOS and Netfilter marks set by Squid
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Mon, 15 Jul 2013 15:47:00 +0000 (18:47 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Mon, 15 Jul 2013 15:47:00 +0000 (18:47 +0300)
commitf123f5e9dacf0f96079e9d7933bf3f5007b76a88
treeadfc6fee9101b53257a8a503d5f1ac8b36106af0
parentfbf061a77a96882d635eb26649ab6022952fa1ee
Log TOS and Netfilter marks set by Squid

This patch add new logformat codes to log TOS/DSCP values and netfilter marks
for client and server connections. If multiple outgoing connections were used,
the last used connection value logged.
The values printed in hexadecimal form.
The logformat codes are:
   %>tos    Client connection tos mark set by Squid
   %<tos    Server connection tos mark set by Squid
   %>nfmark Client connection netfilter mark set by Squid
   %<nfmark Server connection netfilter mark set by Squid

This patch also modify qos related code to set Comm::Connection::nfmark and
Comm::Connection::tos members in Ip::Qos::setSockNfmark and Ip::Qos::setSockTos
methods. The Comm::Connection members are now set only if the tos and nfmark
set successfuly.

This is a Measurement Factory project
src/FwdState.cc
src/cf.data.pre
src/comm/Connection.cc
src/format/ByteCode.h
src/format/Format.cc
src/format/Token.cc
src/ip/Qos.cci