Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Nov 2003 15:06:09 -0500 
From:      Alex Hoff <ahoff@sandvine.com>
To:        "'freebsd-net@freebsd.org'" <freebsd-net@freebsd.org>
Subject:   64 bit packet counters
Message-ID:  <FE045D4D9F7AED4CBFF1B3B813C8533701D9B454@mail.sandvine.com>

next in thread | raw e-mail | index | archive | help
Hi,

We are attempting to implement the IF-MIB, which requires the use of 64 bit
packet counters and the differentiation between multicast and broadcast
pkts. Since changing the if_data (by adding new counters and changing the
existing to u_int64) is a bad idea, does anyone have any good ideas on how
to do this? I was thinking of tacking on a new struct (lets call it
ifx_data) on at the end of the current if_net struct with the appropriate
counters (i/opacket, i/obyte, i/obcast, i/omcast). Apart from having to do a
little double counting is there any obvious pitfals with this approach? Does
anyone have an better ideas? Is there currently any plans to update the
network stack to handle this properly?

Thanks,

Alex Hoff



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FE045D4D9F7AED4CBFF1B3B813C8533701D9B454>