Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/ipf/netinet be consistent about byte flippi...



details:   https://anonhg.NetBSD.org/src/rev/670c318aa8c2
branches:  trunk
changeset: 1009255:670c318aa8c2
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Apr 18 17:02:00 2020 +0000

description:
be consistent about byte flipping (cosmetic no functional change)

diffstat:

 sys/external/bsd/ipf/netinet/ip_state.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b6783d7bdbac -r 670c318aa8c2 sys/external/bsd/ipf/netinet/ip_state.c
--- a/sys/external/bsd/ipf/netinet/ip_state.c   Sat Apr 18 16:58:00 2020 +0000
+++ b/sys/external/bsd/ipf/netinet/ip_state.c   Sat Apr 18 17:02:00 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_state.c,v 1.11 2018/06/03 10:37:23 maxv Exp $       */
+/*     $NetBSD: ip_state.c,v 1.12 2020/04/18 17:02:00 christos Exp $   */
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -100,7 +100,7 @@
 #if !defined(lint)
 #if defined(__NetBSD__)
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_state.c,v 1.11 2018/06/03 10:37:23 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_state.c,v 1.12 2020/04/18 17:02:00 christos Exp $");
 #else
 static const char sccsid[] = "@(#)ip_state.c   1.8 6/5/96 (C) 1993-2000 Darren Reed";
 static const char rcsid[] = "@(#)Id: ip_state.c,v 1.1.1.2 2012/07/22 13:45:37 darrenr Exp";
@@ -2411,7 +2411,7 @@
 
        if (tcp != NULL) {
                sp = htons(fin->fin_sport);
-               dp = ntohs(fin->fin_dport);
+               dp = htons(fin->fin_dport);
        }
        if (!rev) {
                if (tcp != NULL) {



Home | Main Index | Thread Index | Old Index