hi!

does Linux have a system call or API or something for checking bandwidth utilization on an interface? i need to write an SNMP agent using AGENT++/SNMP++, but the library only provides the SNMP stack; instrumentation is entirely up to the developer, and i dont know how to get the number of bytes in and out of an interface. the only thing that comes to mind is to capture all packets (maybe by using libpcap) and count them, but i'm not sure if that's the only way to do it.

btw, as you might guess, i'm constrained to using C/C++ only.

any ideas will be much appreciated!

TIA,
Joel Realubit



--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to