Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet IFA_STATS stability (not complete); don't touch ...



details:   https://anonhg.NetBSD.org/src/rev/b39e600a708c
branches:  trunk
changeset: 499580:b39e600a708c
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Nov 24 03:43:20 2000 +0000

description:
IFA_STATS stability (not complete); don't touch ip if it is NULL.

diffstat:

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

diffs (19 lines):

diff -r 77d2c7bacdce -r b39e600a708c sys/netinet/ip_input.c
--- a/sys/netinet/ip_input.c    Fri Nov 24 02:21:56 2000 +0000
+++ b/sys/netinet/ip_input.c    Fri Nov 24 03:43:20 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_input.c,v 1.121 2000/11/11 00:52:38 thorpej Exp $   */
+/*     $NetBSD: ip_input.c,v 1.122 2000/11/24 03:43:20 itojun Exp $    */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -695,7 +695,8 @@
         * Switch out to protocol's input routine.
         */
 #if IFA_STATS
-       ia->ia_ifa.ifa_data.ifad_inbytes += ip->ip_len;
+       if (ia && ip)
+               ia->ia_ifa.ifa_data.ifad_inbytes += ip->ip_len;
 #endif
        ipstat.ips_delivered++;
     {



Home | Main Index | Thread Index | Old Index