Results 1 to 2 of 2
Hi All,
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
collisions:0 txqueuelen:1000
by C programing in Linux. Is ...
- 06-04-2008 #1Just Joined!
- Join Date
- Jun 2008
- Posts
- 1
ifconfig statistics by C programing
Hi All,
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
collisions:0 txqueuelen:1000
by C programing in Linux. Is it possible to get these by socket interface using ioctl call?
Thanks in advance
Jayakar
- 06-04-2008 #2
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


Reply With Quote
