]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Use proper byteswap macro. This isn't a functional change.
authorglebius <glebius@FreeBSD.org>
Thu, 17 Sep 2015 17:27:49 +0000 (17:27 +0000)
committerglebius <glebius@FreeBSD.org>
Thu, 17 Sep 2015 17:27:49 +0000 (17:27 +0000)
sys/netinet/tcp_subr.c

index c8395e538dfbbda6c12bbcc3d9f5ed8e1663bbec..fa278a8ad91b4a5f60012f96eeaa81d061706bb9 100644 (file)
@@ -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)) {