Getting Tx/Rx Stats from and Ethernet Interface

Getting packet statistics from an ethernet interface would be possible,
using libpcap (

I tried porting libpcap to QNX 4.25, but found there was a dependency on
“ifaddrs.h”, which prolly exists on some flavors of Un*x, but not QNX4.

‘netinfo -Ln’ provides such a statistical summary, but I am trying to
achieve this programatically.

Does anyone have any suggestions?