Module Name: src Committed By: ozaki-r Date: Fri Aug 28 06:27:49 UTC 2020
Modified Files: src/sys/net: if_ethersubr.c Log Message: ether: count dropped packets on output To generate a diff of this commit: cvs rdiff -u -r1.287 -r1.288 src/sys/net/if_ethersubr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/net/if_ethersubr.c diff -u src/sys/net/if_ethersubr.c:1.287 src/sys/net/if_ethersubr.c:1.288 --- src/sys/net/if_ethersubr.c:1.287 Fri Aug 28 06:27:16 2020 +++ src/sys/net/if_ethersubr.c Fri Aug 28 06:27:49 2020 @@ -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 @@ ether_output(struct ifnet * const ifp0, return ifq_enqueue(ifp, m); bad: + if_statinc(ifp, if_oerrors); if (m) m_freem(m); return error;