-/* $OpenBSD: if.c,v 1.384 2015/10/05 15:57:27 uebayasi Exp $ */
+/* $OpenBSD: if.c,v 1.385 2015/10/05 19:05:09 uebayasi Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
CLR(ifp->if_xflags, IFXF_TXREADY);
}
ifp->if_start(ifp);
- ifp->if_oqdrops += ifp->if_snd.ifq_drops;
- ifp->if_snd.ifq_drops = 0;
return;
}
*/
IFQ_ENQUEUE(&ifp->if_snd, m, NULL, error);
if (error) {
- IF_DROP(&ifp->if_snd);
splx(s);
return (error);
}
-/* $OpenBSD: if_bridge.c,v 1.266 2015/10/05 15:52:46 uebayasi Exp $ */
+/* $OpenBSD: if_bridge.c,v 1.267 2015/10/05 19:05:09 uebayasi Exp $ */
/*
* Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net)
if (IF_QFULL(&dst_if->if_snd)) {
IF_DROP(&dst_if->if_snd);
+ sc->sc_if.if_oerrors++;
continue;
}
if (TAILQ_NEXT(p, next) == NULL) {
#endif /* NMPW */
if (IF_QFULL(&dst_if->if_snd)) {
IF_DROP(&dst_if->if_snd);
+ sc->sc_if.if_oerrors++;
continue;
}
if (IF_QFULL(&ifp->if_snd)) {
IF_DROP(&ifp->if_snd);
+ sc->sc_if.if_oerrors++;
continue;
}
-/* $OpenBSD: if_ppp.c,v 1.88 2015/10/05 15:57:27 uebayasi Exp $ */
+/* $OpenBSD: if_ppp.c,v 1.89 2015/10/05 19:05:09 uebayasi Exp $ */
/* $NetBSD: if_ppp.c,v 1.39 1997/05/17 21:11:59 christos Exp $ */
/*
IF_ENQUEUE(ifq, m0);
error = 0;
}
- } else {
+ } else
IFQ_ENQUEUE(&sc->sc_if.if_snd, m0, NULL, error);
- if (error)
- IF_DROP(&sc->sc_if.if_snd);
- }
if (error) {
splx(s);
+ sc->sc_if.if_oerrors++;
sc->sc_stats.ppp_oerrors++;
return (error);
}
IF_ENQUEUE(ifq, m);
error = 0;
}
- } else {
+ } else
IFQ_ENQUEUE(&sc->sc_if.if_snd, m, NULL, error);
- if (error)
- IF_DROP(&sc->sc_if.if_snd);
- }
if (error) {
+ sc->sc_if.if_oerrors++;
sc->sc_stats.ppp_oerrors++;
}
break;
-/* $OpenBSD: if_spppsubr.c,v 1.140 2015/10/05 15:52:46 uebayasi Exp $ */
+/* $OpenBSD: if_spppsubr.c,v 1.141 2015/10/05 19:05:09 uebayasi Exp $ */
/*
* Synchronous PPP link level subroutines.
*
if (IF_QFULL (&sp->pp_cpq)) {
IF_DROP (&ifp->if_snd);
m_freem (m);
+ ++ifp->if_oerrors;
m = NULL;
} else
IF_ENQUEUE (&sp->pp_cpq, m);
if (IF_QFULL (&sp->pp_cpq)) {
IF_DROP (&ifp->if_snd);
m_freem (m);
+ ++ifp->if_oerrors;
m = NULL;
} else
IF_ENQUEUE (&sp->pp_cpq, m);
-/* $OpenBSD: if_vlan.c,v 1.144 2015/10/05 15:52:46 uebayasi Exp $ */
+/* $OpenBSD: if_vlan.c,v 1.145 2015/10/05 19:05:09 uebayasi Exp $ */
/*
* Copyright 1998 Massachusetts Institute of Technology
if ((p->if_flags & (IFF_UP|IFF_RUNNING)) !=
(IFF_UP|IFF_RUNNING)) {
IF_DROP(&p->if_snd);
+ ifp->if_oerrors++;
m_freem(m);
continue;
}
-/* $OpenBSD: ieee80211_pae_output.c,v 1.22 2015/10/05 15:57:27 uebayasi Exp $ */
+/* $OpenBSD: ieee80211_pae_output.c,v 1.23 2015/10/05 19:05:09 uebayasi Exp $ */
/*-
* Copyright (c) 2007,2008 Damien Bergamini <damien.bergamini@free.fr>
ifp->if_obytes += len;
if ((ifp->if_flags & IFF_OACTIVE) == 0)
(*ifp->if_start)(ifp);
- } else
- IF_DROP(&ifp->if_snd);
+ }
splx(s);
return error;
-/* $OpenBSD: ip_carp.c,v 1.274 2015/10/05 15:52:46 uebayasi Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.275 2015/10/05 19:05:09 uebayasi Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
if ((ifp->if_carpdev->if_flags & (IFF_UP|IFF_RUNNING)) !=
(IFF_UP|IFF_RUNNING)) {
IF_DROP(&ifp->if_carpdev->if_snd);
+ ifp->if_oerrors++;
m_freem(m);
continue;
}