Source-Changes-HG archive

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

[src/trunk]: src/sys/net Increment if_iqdrops when dropping an oversized frame.



details:   https://anonhg.NetBSD.org/src/rev/527b05c84beb
branches:  trunk
changeset: 845391:527b05c84beb
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Oct 01 08:13:16 2019 +0000

description:
Increment if_iqdrops when dropping an oversized frame.

diffstat:

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

diffs (26 lines):

diff -r 159ce53edd97 -r 527b05c84beb sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c    Mon Sep 30 23:23:59 2019 +0000
+++ b/sys/net/if_ethersubr.c    Tue Oct 01 08:13:16 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ethersubr.c,v 1.276 2019/07/17 03:26:24 msaitoh Exp $       */
+/*     $NetBSD: if_ethersubr.c,v 1.277 2019/10/01 08:13:16 msaitoh 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.276 2019/07/17 03:26:24 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.277 2019/10/01 08:13:16 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -619,6 +619,7 @@
                            ifp->if_xname, m->m_pkthdr.len);
                }
                mutex_exit(&bigpktpps_lock);
+               ifp->if_iqdrops++;
                m_freem(m);
                return;
        }



Home | Main Index | Thread Index | Old Index