netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] netfilter: seqadj: print the host byte order ack seq
@ 2014-12-25  9:47 Gao feng
  2014-12-29  8:22 ` [PATCH v2] " Gao feng
  0 siblings, 1 reply; 3+ messages in thread
From: Gao feng @ 2014-12-25  9:47 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Gao feng

new_start_seq and new_end_seq are network byte order,
print the host byte order in debug message.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
---
 net/netfilter/nf_conntrack_seqadj.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/netfilter/nf_conntrack_seqadj.c b/net/netfilter/nf_conntrack_seqadj.c
index f6e2ae9..6e278e4 100644
--- a/net/netfilter/nf_conntrack_seqadj.c
+++ b/net/netfilter/nf_conntrack_seqadj.c
@@ -99,8 +99,8 @@ static void nf_ct_sack_block_adjust(struct sk_buff *skb,
 				      seq->offset_before);
 
 		pr_debug("sack_adjust: start_seq: %d->%d, end_seq: %d->%d\n",
-			 ntohl(sack->start_seq), new_start_seq,
-			 ntohl(sack->end_seq), new_end_seq);
+			 ntohl(sack->start_seq), ntohl(new_start_seq),
+			 ntohl(sack->end_seq), ntohl(new_end_seq));
 
 		inet_proto_csum_replace4(&tcph->check, skb,
 					 sack->start_seq, new_start_seq, 0);
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-01-05 12:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-25  9:47 [PATCH] netfilter: seqadj: print the host byte order ack seq Gao feng
2014-12-29  8:22 ` [PATCH v2] " Gao feng
2015-01-05 12:58   ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).