From: Christos Tsantilas Date: Wed, 16 Apr 2014 17:40:17 +0000 (+0300) Subject: Encapsulated commonly reused ToS and NfMark code into GetMarkingsToServer(), par X-Git-Tag: SQUID_3_5_0_1~288 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f3c27a1010f923c191338aa15794798ab3987f8;p=thirdparty%2Fsquid.git Encapsulated commonly reused ToS and NfMark code into GetMarkingsToServer(), par t2 Use the FwdState.h include file instead of redefining GetTosToServer and GetNfmarkToServer to each .cc file they are used. --- diff --git a/src/tunnel.cc b/src/tunnel.cc index c04a9498c7..eebe9c5617 100644 --- a/src/tunnel.cc +++ b/src/tunnel.cc @@ -42,6 +42,7 @@ #include "comm/Write.h" #include "errorpage.h" #include "fde.h" +#include "FwdState.h" #include "http.h" #include "HttpRequest.h" #include "HttpStateFlags.h" @@ -829,9 +830,6 @@ tunnelConnectDone(const Comm::ConnectionPointer &conn, comm_err_t status, int xe commSetConnTimeout(conn, Config.Timeout.read, timeoutCall); } -tos_t GetTosToServer(HttpRequest * request); -nfmark_t GetNfmarkToServer(HttpRequest * request); - void tunnelStart(ClientHttpRequest * http, int64_t * size_ptr, int *status_ptr, const AccessLogEntryPointer &al) {