Re: Interface traffic counters

2007-06-21 Thread Claudio Jeker
On Wed, Jun 20, 2007 at 09:24:16PM -0400, Arnaud Bergeron wrote: I have a problem where I need to know how much traffic has passed on a given interface. I don't need it broken down by IPs, protocols or whatever of the sort. After a bit of research I discovered the SIOCGIFDATA ioctl that

Re: Interface traffic counters

2007-06-21 Thread Arnaud Bergeron
On 6/21/07, Claudio Jeker [EMAIL PROTECTED] wrote: On Wed, Jun 20, 2007 at 09:24:16PM -0400, Arnaud Bergeron wrote: I have a problem where I need to know how much traffic has passed on a given interface. I don't need it broken down by IPs, protocols or whatever of the sort. After a bit of

Interface traffic counters

2007-06-20 Thread Arnaud Bergeron
I have a problem where I need to know how much traffic has passed on a given interface. I don't need it broken down by IPs, protocols or whatever of the sort. After a bit of research I discovered the SIOCGIFDATA ioctl that seems to do what I want. I built myself a little test application to