Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Fix kernel builds with IFA_STATS



details:   https://anonhg.NetBSD.org/src/rev/496c218b2e14
branches:  trunk
changeset: 348231:496c218b2e14
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Tue Oct 11 05:15:01 2016 +0000

description:
Fix kernel builds with IFA_STATS

diffstat:

 sys/netinet/ip_input.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1610bb1ecc37 -r 496c218b2e14 sys/netinet/ip_input.c
--- a/sys/netinet/ip_input.c    Tue Oct 11 04:16:28 2016 +0000
+++ b/sys/netinet/ip_input.c    Tue Oct 11 05:15:01 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_input.c,v 1.341 2016/09/07 15:41:44 roy Exp $       */
+/*     $NetBSD: ip_input.c,v 1.342 2016/10/11 05:15:01 ozaki-r Exp $   */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.341 2016/09/07 15:41:44 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.342 2016/10/11 05:15:01 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -829,7 +829,7 @@
                 * is expensive, so explore ia here again.
                 */
                s = pserialize_read_enter();
-               _ia = in_get_ia(ip->ip_dst.s_addr);
+               _ia = in_get_ia(ip->ip_dst);
                _ia->ia_ifa.ifa_data.ifad_inbytes += ntohs(ip->ip_len);
                pserialize_read_exit(s);
        }



Home | Main Index | Thread Index | Old Index