Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Jun 2008
ifconfig statistics by C programing
I need to get network interface statistics like
RX packets:74683563 errors:0 dropped:0 overruns:0 frame:0
TX packets:84739585 errors:0 dropped:0 overruns:0 carrier:0
by C programing in Linux. Is it possible to get these by socket interface using ioctl call?
Thanks in advance
you should be able to use the exec system call and run the ifconfig command, but its been a while since i've done any C/OS programming