that later but all drivers should be adapated.
Should fix a double output packet accounting, reported by Hrvoje Popovski.
-/* $OpenBSD: if.c,v 1.332 2015/05/19 11:09:24 mpi Exp $ */
+/* $OpenBSD: if.c,v 1.333 2015/05/20 08:28:54 mpi Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
if (mflags & M_MCAST)
ifp->if_omcasts++;
- ifp->if_opackets++;
if_start(ifp);
splx(s);
-/* $OpenBSD: if_tun.c,v 1.142 2015/05/19 15:10:59 mpi Exp $ */
+/* $OpenBSD: if_tun.c,v 1.143 2015/05/20 08:28:54 mpi Exp $ */
/* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */
/*
ifp->if_collisions++;
return (error);
}
+ ifp->if_opackets++;
tun_wakeup(tp);
return (0);
-/* $OpenBSD: if_vlan.c,v 1.121 2015/05/19 11:21:42 mpi Exp $ */
+/* $OpenBSD: if_vlan.c,v 1.122 2015/05/20 08:28:54 mpi Exp $ */
/*
* Copyright 1998 Massachusetts Institute of Technology
ifp->if_oerrors++;
continue;
}
+ ifp->if_opackets++;
}
}