From 399fbd0ec0c87cc4203bc19829aed14047bd9fe7 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Thu, 17 Sep 2015 17:27:49 +0000 Subject: [PATCH] Use proper byteswap macro. This isn't a functional change. --- sys/netinet/tcp_subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index c8395e538df..fa278a8ad91 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -1530,7 +1530,7 @@ tcp_ctlinput(int cmd, struct sockaddr *sa, void *vip) if (!(inp->inp_flags & INP_TIMEWAIT) && !(inp->inp_flags & INP_DROPPED) && !(inp->inp_socket == NULL)) { - icmp_tcp_seq = htonl(th->th_seq); + icmp_tcp_seq = ntohl(th->th_seq); tp = intotcpcb(inp); if (SEQ_GEQ(icmp_tcp_seq, tp->snd_una) && SEQ_LT(icmp_tcp_seq, tp->snd_max)) {