aboutsummaryrefslogtreecommitdiffstats
path: root/main/squid/squid-2.7-loggable-urlgroup.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2010-11-18 16:41:55 +0200
committerTimo Teräs <timo.teras@iki.fi>2010-11-18 16:41:55 +0200
commit982cbbced0983bf870e2ad60d1b530e2f55bfb99 (patch)
tree830d0bec351935e87267f71dad7325abd13d6f19 /main/squid/squid-2.7-loggable-urlgroup.patch
parent46d92312741bc36327d010dcf74c16d0dbe69b90 (diff)
downloadaports-982cbbced0983bf870e2ad60d1b530e2f55bfb99.tar.bz2
aports-982cbbced0983bf870e2ad60d1b530e2f55bfb99.tar.xz
main/squid: add a patch to enable logging of request urlgroup
The urlgroup is a data entry which can be returned from a redirector and is useful if it can be logged (ref #447). Squark will use this to return classification data back to squid.
Diffstat (limited to 'main/squid/squid-2.7-loggable-urlgroup.patch')
-rw-r--r--main/squid/squid-2.7-loggable-urlgroup.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/main/squid/squid-2.7-loggable-urlgroup.patch b/main/squid/squid-2.7-loggable-urlgroup.patch
new file mode 100644
index 0000000000..c2bc9e6d64
--- /dev/null
+++ b/main/squid/squid-2.7-loggable-urlgroup.patch
@@ -0,0 +1,33 @@
+Index: squid-2.7.STABLE9/src/access_log.c
+===================================================================
+--- squid-2.7.STABLE9.orig/src/access_log.c 2010-11-18 15:02:26.000000000 +0200
++++ squid-2.7.STABLE9/src/access_log.c 2010-11-18 15:07:34.000000000 +0200
+@@ -301,6 +301,7 @@
+ LFT_REQUEST_URLPATH,
+ /*LFT_REQUEST_QUERY, * // * this is not needed. see strip_query_terms */
+ LFT_REQUEST_VERSION,
++ LFT_REQUEST_URLGROUP,
+
+ LFT_REQUEST_SIZE_TOTAL,
+ /*LFT_REQUEST_SIZE_LINE, */
+@@ -411,6 +412,7 @@
+ /* { "rq", LFT_REQUEST_QUERY }, * / / * the query-string, INCLUDING the leading ? */
+ {">v", LFT_REQUEST_VERSION},
+ {"rv", LFT_REQUEST_VERSION},
++ {"rG", LFT_REQUEST_URLGROUP},
+
+ {">st", LFT_REQUEST_SIZE_TOTAL},
+ /*{ ">sl", LFT_REQUEST_SIZE_LINE }, * / / * the request line "GET ... " */
+@@ -544,6 +546,12 @@
+ quote = 1;
+ break;
+
++ case LFT_REQUEST_URLGROUP:
++ if (al->request)
++ out = al->request->urlgroup;
++ quote = 1;
++ break;
++
+ case LFT_REPLY_HEADER:
+ if (al->reply)
+ sb = httpHeaderGetByName(&al->reply->header, fmt->data.header.header);