From 3a3db63ddb35706ef2ed4bf3f0df7553bd426a22 Mon Sep 17 00:00:00 2001 From: Christos Tsantilas Date: Wed, 30 Jul 2014 19:04:19 +0300 Subject: [PATCH] Fix tcp outgoing tos bugs part 3 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ftp.cc b/src/ftp.cc index 0735e2f80a..5e4ea01ec7 100644 --- a/src/ftp.cc +++ b/src/ftp.cc @@ -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); -- 2.47.2