Source-Changes-HG archive

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

[src/netbsd-6]: src/sys/net Pull up following revision(s) (requested by ozaki...



details:   https://anonhg.NetBSD.org/src/rev/8b182f4eb8bd
branches:  netbsd-6
changeset: 776963:8b182f4eb8bd
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Apr 24 05:56:42 2015 +0000

description:
Pull up following revision(s) (requested by ozaki-r in ticket #1295):
        sys/net/if_vlan.c: revision 1.81
Count up parent's obytes and omcasts counters
PR kern/49837

diffstat:

 sys/net/if_vlan.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 5d3a916c6678 -r 8b182f4eb8bd sys/net/if_vlan.c
--- a/sys/net/if_vlan.c Sun Apr 19 17:08:12 2015 +0000
+++ b/sys/net/if_vlan.c Fri Apr 24 05:56:42 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vlan.c,v 1.69.8.3 2015/04/16 09:27:32 msaitoh Exp $ */
+/*     $NetBSD: if_vlan.c,v 1.69.8.4 2015/04/24 05:56:42 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 1.69.8.3 2015/04/16 09:27:32 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 1.69.8.4 2015/04/24 05:56:42 msaitoh Exp $");
 
 #include "opt_inet.h"
 
@@ -821,6 +821,10 @@
                }
 
                ifp->if_opackets++;
+
+               p->if_obytes += m->m_pkthdr.len;
+               if (m->m_flags & M_MCAST)
+                       p->if_omcasts++;
                if ((p->if_flags & (IFF_RUNNING|IFF_OACTIVE)) == IFF_RUNNING)
                        (*p->if_start)(p);
        }



Home | Main Index | Thread Index | Old Index