Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Gao feng and committed by
Pablo Neira Ayuso
b44b565c b18c5d15

+3 -3
+3 -3
net/netfilter/nf_conntrack_seqadj.c
··· 98 98 new_end_seq = htonl(ntohl(sack->end_seq) - 99 99 seq->offset_before); 100 100 101 - pr_debug("sack_adjust: start_seq: %d->%d, end_seq: %d->%d\n", 102 - ntohl(sack->start_seq), new_start_seq, 103 - ntohl(sack->end_seq), new_end_seq); 101 + pr_debug("sack_adjust: start_seq: %u->%u, end_seq: %u->%u\n", 102 + ntohl(sack->start_seq), ntohl(new_start_seq), 103 + ntohl(sack->end_seq), ntohl(new_end_seq)); 104 104 105 105 inet_proto_csum_replace4(&tcph->check, skb, 106 106 sack->start_seq, new_start_seq, 0);