unicast octets statistics

Eugene Grosbein eugen at kuzbass.ru
Wed Jul 9 23:40:26 PDT 2003


Eugene Grosbein wrote:
> 
> Milan Obuch wrote:
> 
> > > ifInOctets counts broadcasts too.
> > > I finished with ipfw2, thank you all.
> 
> > Maybe you could 'advertise' your solution :)
> 
> I use ipfw2 to count packets:
> 
> from any to any in recv ep0 mac $mymac any
> and
> from any to any out xmit ep0.

The second rule is incorrect for IPFW2, it counts packets twice.
It nust be replaced with
from any to any out xmit ep0 not layer2

Eugene


More information about the freebsd-net mailing list