Source-Changes-HG archive

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

[src/trunk]: src/sys/net ether: count dropped packets on output



details:   https://anonhg.NetBSD.org/src/rev/68605c03f1d7
branches:  trunk
changeset: 975377:68605c03f1d7
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Fri Aug 28 06:27:49 2020 +0000

description:
ether: count dropped packets on output

diffstat:

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

diffs (26 lines):

diff -r 2c14cbeb56a1 -r 68605c03f1d7 sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c    Fri Aug 28 06:27:16 2020 +0000
+++ b/sys/net/if_ethersubr.c    Fri Aug 28 06:27:49 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ethersubr.c,v 1.287 2020/08/28 06:27:16 ozaki-r Exp $       */
+/*     $NetBSD: if_ethersubr.c,v 1.288 2020/08/28 06:27:49 ozaki-r Exp $       */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.287 2020/08/28 06:27:16 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.288 2020/08/28 06:27:49 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -456,6 +456,7 @@
        return ifq_enqueue(ifp, m);
 
 bad:
+       if_statinc(ifp, if_oerrors);
        if (m)
                m_freem(m);
        return error;



Home | Main Index | Thread Index | Old Index