Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #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

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    NH, USA
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts