projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b18c5d1
)
netfilter: nf_ct_seqadj: print ack seq in the right host byte order
author
Gao feng
<gaofeng@cn.fujitsu.com>
Mon, 29 Dec 2014 08:22:11 +0000
(16:22 +0800)
committer
Pablo Neira Ayuso
<pablo@soleta.eu>
Mon, 5 Jan 2015 12:52:20 +0000
(13:52 +0100)
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>
net/netfilter/nf_conntrack_seqadj.c
patch
|
blob
|
blame
|
history
diff --git
a/net/netfilter/nf_conntrack_seqadj.c
b/net/netfilter/nf_conntrack_seqadj.c
index f6e2ae91a80badd697a1f77e299dc332bc34a8d1..ce3e840c870452b705744f9b64fb32661b6c82a5 100644
(file)
--- 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,
new_end_seq = htonl(ntohl(sack->end_seq) -
seq->offset_before);
- pr_debug("sack_adjust: start_seq: %
d->%d, end_seq: %d->%d
\n",
- ntohl(sack->start_seq), n
ew_start_seq
,
- ntohl(sack->end_seq), n
ew_end_seq
);
+ pr_debug("sack_adjust: start_seq: %
u->%u, end_seq: %u->%u
\n",
+ ntohl(sack->start_seq), n
tohl(new_start_seq)
,
+ ntohl(sack->end_seq), n
tohl(new_end_seq)
);
inet_proto_csum_replace4(&tcph->check, skb,
sack->start_seq, new_start_seq, 0);