artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
834deb6
)
Stats for bridge output too.
author
angelos
<angelos@openbsd.org>
Tue, 18 Apr 2000 06:41:23 +0000
(06:41 +0000)
committer
angelos
<angelos@openbsd.org>
Tue, 18 Apr 2000 06:41:23 +0000
(06:41 +0000)
sys/net/if_enc.c
patch
|
blob
|
history
diff --git
a/sys/net/if_enc.c
b/sys/net/if_enc.c
index
74cf10e
..
d14613a
100644
(file)
--- a/
sys/net/if_enc.c
+++ b/
sys/net/if_enc.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: if_enc.c,v 1.
29 2000/04/18 06:35:02
angelos Exp $ */
+/* $OpenBSD: if_enc.c,v 1.
30 2000/04/18 06:41:23
angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@
-247,6
+247,9
@@
struct ifnet *ifp;
continue;
}
+ ifp->if_opackets++;
+ ifp->if_obytes += m->m_pkthdr.len;
+
m->m_pkthdr.rcvif = ifp;
mp = NULL;
@@
-324,9
+327,6
@@
register struct rtentry *rt;
return 0;
}
- ifp->if_opackets++;
- ifp->if_obytes += m->m_pkthdr.len;
-
IF_ENQUEUE(&ifp->if_snd, m);
splx(s);