diff options
author | Kevin Cernekee <cernekee@chromium.org> | 2016-08-31 21:27:54 -0700 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-09-05 19:44:23 +0200 |
commit | d833bed181469876c4182156682ca9e5ebd9bd9a (patch) | |
tree | cbe9c8b47fdb27a025b93f2749fd29563bcfcc01 /src | |
parent | 74a418b21b22fa67ecacd8f738eb8e2d6e4f4be9 (diff) |
conntrackd: cthelper: ftp: Fix debug print
matchoff is relative to dataoff, i.e. matchoff=0 (as utilized by
nfq_tcp_mangle_ipv4()) points to the first byte of the TCP payload.
Signed-off-by: Kevin Cernekee <cernekee@chromium.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/helpers/ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/ftp.c b/src/helpers/ftp.c index 3da6e56..27ab5eb 100644 --- a/src/helpers/ftp.c +++ b/src/helpers/ftp.c @@ -511,7 +511,7 @@ ftp_helper_cb(struct pkt_buff *pkt, uint32_t protoff, goto out_update_nl; pr_debug("conntrack_ftp: match `%.*s' (%u bytes at %u)\n", - matchlen, pktb_network_header(pkt) + matchoff, + matchlen, pktb_network_header(pkt) + dataoff + matchoff, matchlen, ntohl(th->seq) + matchoff); /* We refer to the reverse direction ("!dir") tuples here, |