]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix tcp outgoing tos bugs part 3
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 30 Jul 2014 16:04:19 +0000 (19:04 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 30 Jul 2014 16:04:19 +0000 (19:04 +0300)
Set tos and netfilter mark value for outgoing ftp data connections established
using the PASV command. Currently works only for EPSV command.

src/ftp.cc

index 0735e2f80a2a7828fa65523b4c5e33aa3a1ef05a..5e4ea01ec7e75aa0d7390dad82d01e9aa967a1c3 100644 (file)
@@ -2726,6 +2726,8 @@ ftpReadPasv(FtpStateData * ftpState)
     conn->setAddrs(ftpState->ctrl.conn->local, ipaddr);
     conn->local.port(0);
     conn->remote.port(port);
+    conn->tos = ftpState->ctrl.conn->tos;
+    conn->nfmark = ftpState->ctrl.conn->nfmark;
 
     debugs(9, 3, HERE << "connecting to " << conn->remote);