do not count ethernet header twice in if_obytes stats.
authordamien <damien@openbsd.org>
Mon, 4 Aug 2008 18:55:08 +0000 (18:55 +0000)
committerdamien <damien@openbsd.org>
Mon, 4 Aug 2008 18:55:08 +0000 (18:55 +0000)
commit58a6e92cd8c7ae437ee4eda514c74d1e26343498
treec4fbfb3483a9af28342d4ae9137dd7bda2eaa912
parente0b2f5c5ffa29151ebbfa580dabc47fedf4240bf
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.
sys/net/if_ethersubr.c
sys/net/if_tun.c