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 Revert changing the byte order ...



details:   https://anonhg.NetBSD.org/src/rev/edb5e4054e22
branches:  trunk
changeset: 826442:edb5e4054e22
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Sep 05 11:12:32 2017 +0000

description:
Revert changing the byte order of fi->fi_addr. It is already correct. From
Timo Buhrmester
XXX: pullup 8.

diffstat:

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

diffs (27 lines):

diff -r 82251fe2c3cb -r edb5e4054e22 sys/external/bsd/ipf/netinet/fil.c
--- a/sys/external/bsd/ipf/netinet/fil.c        Tue Sep 05 08:01:43 2017 +0000
+++ b/sys/external/bsd/ipf/netinet/fil.c        Tue Sep 05 11:12:32 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fil.c,v 1.20 2017/04/23 20:47:22 christos Exp $        */
+/*     $NetBSD: fil.c,v 1.21 2017/09/05 11:12:32 christos Exp $        */
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -138,7 +138,7 @@
 #if !defined(lint)
 #if defined(__NetBSD__)
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.20 2017/04/23 20:47:22 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.21 2017/09/05 11:12:32 christos Exp $");
 #else
 static const char sccsid[] = "@(#)fil.c        1.36 6/5/96 (C) 1993-2000 Darren Reed";
 static const char rcsid[] = "@(#)Id: fil.c,v 1.1.1.2 2012/07/22 13:45:07 darrenr Exp $";
@@ -1709,7 +1709,7 @@
        fin->fin_crc += fi->fi_saddr;
        fi->fi_daddr = ip->ip_dst.s_addr;
        fin->fin_crc += fi->fi_daddr;
-       if (IN_CLASSD(ntohl(fi->fi_daddr)))
+       if (IN_CLASSD(fi->fi_daddr))
                fin->fin_flx |= FI_MULTICAST|FI_MBCAST;
 
        /*



Home | Main Index | Thread Index | Old Index