summaryrefslogtreecommitdiff
path: root/sys/net/if_tun.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2008-08-04 18:55:09 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2008-08-04 18:55:09 +0000
commite86d182943ddc0566d17a16e21c6195c400ef4f7 (patch)
tree947e7ef3eb095f9eb6fff05f383fe02ca89a7c29 /sys/net/if_tun.c
parentc178a8db046c94d9857a1a51b96a797cd9b10686 (diff)
do not count ethernet header twice in if_obytes stats.
do not count address family field twice in tun's if_obytes stats. ok henning@ reyk@ deraadt@ for the ethernet bits. ok deraadt@ for the tun bits.
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r--sys/net/if_tun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index 417c350a13f..bd20a295b48 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tun.c,v 1.93 2008/05/07 05:51:12 mpf Exp $ */
+/* $OpenBSD: if_tun.c,v 1.94 2008/08/04 18:55:08 damien Exp $ */
/* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */
/*
@@ -561,7 +561,7 @@ tun_output(struct ifnet *ifp, struct mbuf *m0, struct sockaddr *dst,
bpf_mtap(ifp->if_bpf, m0, BPF_DIRECTION_OUT);
#endif
- len = m0->m_pkthdr.len + sizeof(*af);
+ len = m0->m_pkthdr.len;
s = splnet();
IFQ_ENQUEUE(&ifp->if_snd, m0, NULL, error);
if (error) {