Yes, thank you:
Name Mtu Network AddressIpkts Ierrs IbytesOpkts Oerrs
Obytes Coll
tun0 1500 469561 0 158358233 438305 0
114637121 0
tun0 1500 195.161.2 195.161.2.170 469561 0 158358233 438305 0
114
Ok... Does this work though?
On Wed, 16 Feb 2000, Igor Timkin wrote:
> What's abount ibytes ?
> > m_adj(top, sizeof(family));
> > } else
> > family = AF_INET;
Add:
ifp->if_ibytes += top->m_pkthdr.len;
> > +
> > + ifp->if_ipackets++;
> >
> > return fa
What's abount ibytes ?
> Try this patch.
>
> Index: if_tun.c
> ===
> RCS file: /cvs/src/sys/net/if_tun.c,v
> retrieving revision 1.73
> diff -u -1 -6 -r1.73 if_tun.c
> --- if_tun.c 2000/01/29 01:10:24 1.73
> +++ if_tun.c 2000/
Try this patch.
Index: if_tun.c
===
RCS file: /cvs/src/sys/net/if_tun.c,v
retrieving revision 1.73
diff -u -1 -6 -r1.73 if_tun.c
--- if_tun.c2000/01/29 01:10:24 1.73
+++ if_tun.c2000/02/15 21:49:40
@@ -620,32 +620,33 @@
4.0-CURRENT seems don't count inpput packets/bytes on tun interface
(3.4-STABLE don't has such problem):
ivt@newsfeed:/news/etc:2:322>netstat -in
Name Mtu Network AddressIpkts IerrsOpkts Oerrs Coll
fxp0 1500 00:a0:c9:a3:5a:85 6312807 4 6938927 2 0
fxp0