the if_ierrors before bailing out;
Turn a printf() that fires in this case too a DPRINTF since we
the interface error counters now reflect this.
OK mglocker@
-/* $OpenBSD: if_upgt.c,v 1.36 2008/07/21 18:43:19 damien Exp $ */
+/* $OpenBSD: if_upgt.c,v 1.37 2008/08/08 12:20:24 thib Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
m = m_devget(rxdesc->data - ETHER_ALIGN, pkglen + ETHER_ALIGN, 0, ifp,
NULL);
if (m == NULL) {
- printf("%s: could not create RX mbuf!\n", sc->sc_dev.dv_xname);
+ DPRINTF(1, "%s: could not create RX mbuf!\n", sc->sc_dev.dv_xname);
+ ifp->if_ierrors++;
return;
}
m_adj(m, ETHER_ALIGN);