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/f65dbbacf798
branches:  trunk
changeset: 943165:f65dbbacf798
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 bb3dc098e2c0 -r f65dbbacf798 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