svn commit: r287923 - head/sys/netinet
Gleb Smirnoff
glebius at FreeBSD.org
Thu Sep 17 17:27:50 UTC 2015
Author: glebius
Date: Thu Sep 17 17:27:49 2015
New Revision: 287923
URL: https://svnweb.freebsd.org/changeset/base/287923
Log:
Use proper byteswap macro. This isn't a functional change.
Modified:
head/sys/netinet/tcp_subr.c
Modified: head/sys/netinet/tcp_subr.c
==============================================================================
--- head/sys/netinet/tcp_subr.c Thu Sep 17 17:09:03 2015 (r287922)
+++ head/sys/netinet/tcp_subr.c Thu Sep 17 17:27:49 2015 (r287923)
@@ -1530,7 +1530,7 @@ tcp_ctlinput(int cmd, struct sockaddr *s
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)) {
More information about the svn-src-all
mailing list