Date: Thu, 17 Sep 2015 17:27:50 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287923 - head/sys/netinet Message-ID: <201509171727.t8HHRoYr007912@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509171727.t8HHRoYr007912>