diff options
| author | Gao feng <gaofeng@cn.fujitsu.com> | 2014-12-29 03:22:11 -0500 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@soleta.eu> | 2015-01-05 07:52:20 -0500 |
| commit | b44b565cf548d78c1fa80321b14bf6b5308f337a (patch) | |
| tree | 373bad44c2aa02b6a3211847f4f55f44a1cfa4aa /net/netfilter | |
| parent | b18c5d15e8714336365d9d51782d5b53afa0443c (diff) | |
netfilter: nf_ct_seqadj: print ack seq in the right host byte order
new_start_seq and new_end_seq are network byte order,
print the host byte order in debug message and print
seq number as the type of unsigned int.
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: Pablo Neira Ayuso <pablo@soleta.eu>
Diffstat (limited to 'net/netfilter')
| -rw-r--r-- | net/netfilter/nf_conntrack_seqadj.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/netfilter/nf_conntrack_seqadj.c b/net/netfilter/nf_conntrack_seqadj.c index f6e2ae91a80b..ce3e840c8704 100644 --- a/net/netfilter/nf_conntrack_seqadj.c +++ b/net/netfilter/nf_conntrack_seqadj.c | |||
| @@ -98,9 +98,9 @@ static void nf_ct_sack_block_adjust(struct sk_buff *skb, | |||
| 98 | new_end_seq = htonl(ntohl(sack->end_seq) - | 98 | new_end_seq = htonl(ntohl(sack->end_seq) - |
| 99 | seq->offset_before); | 99 | seq->offset_before); |
| 100 | 100 | ||
| 101 | pr_debug("sack_adjust: start_seq: %d->%d, end_seq: %d->%d\n", | 101 | pr_debug("sack_adjust: start_seq: %u->%u, end_seq: %u->%u\n", |
| 102 | ntohl(sack->start_seq), new_start_seq, | 102 | ntohl(sack->start_seq), ntohl(new_start_seq), |
| 103 | ntohl(sack->end_seq), new_end_seq); | 103 | ntohl(sack->end_seq), ntohl(new_end_seq)); |
| 104 | 104 | ||
| 105 | inet_proto_csum_replace4(&tcph->check, skb, | 105 | inet_proto_csum_replace4(&tcph->check, skb, |
| 106 | sack->start_seq, new_start_seq, 0); | 106 | sack->start_seq, new_start_seq, 0); |
