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 PR/55137: Kouichi Hashikawa: ip...



details:   https://anonhg.NetBSD.org/src/rev/5f083b3606ff
branches:  trunk
changeset: 850483:5f083b3606ff
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Apr 05 02:50:27 2020 +0000

description:
PR/55137: Kouichi Hashikawa: ipfstat -f incorrect output
Fix incorrect byte order.

diffstat:

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

diffs (27 lines):

diff -r a7cad1fa648d -r 5f083b3606ff sys/external/bsd/ipf/netinet/fil.c
--- a/sys/external/bsd/ipf/netinet/fil.c        Sun Apr 05 01:21:43 2020 +0000
+++ b/sys/external/bsd/ipf/netinet/fil.c        Sun Apr 05 02:50:27 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fil.c,v 1.31 2019/09/30 16:58:06 bouyer Exp $  */
+/*     $NetBSD: fil.c,v 1.32 2020/04/05 02:50:27 christos Exp $        */
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -141,7 +141,7 @@
 #if !defined(lint)
 #if defined(__NetBSD__)
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.31 2019/09/30 16:58:06 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.32 2020/04/05 02:50:27 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 $";
@@ -1696,7 +1696,7 @@
        fi->fi_p = p;
        fin->fin_crc = p;
        fi->fi_tos = ip->ip_tos;
-       fin->fin_id = ip->ip_id;
+       fin->fin_id = ntohs(ip->ip_id);
        off = ntohs(ip->ip_off);
 
        /* Get both TTL and protocol */



Home | Main Index | Thread Index | Old Index