Is there a devctl interface for tcpip module and arp module within io-net to
gather ip stats (similar to nicinfo structure) or should this be done
another way?
Also, if I want to change configuration of ip setup programmatically, how is
this done (i.e. the underlying code for ifconfig)?
Any help would be much appreciated.
Poseidon
Poseidon <paul.ryan2@nospam.virgin.net> wrote:
: Is there a devctl interface for tcpip module and arp module within io-net to
For the arp module, SIOCGARP ioctl.
: gather ip stats (similar to nicinfo structure) or should this be done
: another way?
Which ip stats in particular are you interested in?
: Also, if I want to change configuration of ip setup programmatically, how is
: this done (i.e. the underlying code for ifconfig)?
SIOCAIFADDR, SIOCSIFADDR ioctls.
-seanb
Thanks for that info
Which ip stats in particular are you interested in?
I am interested in IP rx,tx byte/packet counts, IP errors/unknowns/discards,
ICMP counts broken down by type (Echo, Timestamp etc.), TCP/UDP byte counts
and sundries. Basically, the list of stats that you would normally associate
with SNMP without using SNMP to get them.
I understand that the SNMP code itself uses kernel info calls (which I
assume are synthesised in QNX) to get this information but I have no idea
how to do this or indeed what the “kernel” calls have access to.
Any pointers would be gratefully appreciated.
Poseidon