Network (card) information
Hi There,
I look for a way to retrieve the following things from a system where multiple network can be present at the same time:
1) IP address (IPv4 is enough for now)
2) Subnet mask
3) Macaddress
per network adapter.
I tried quite a few thing (practically all day today with SIOCGIFCONF, SIOCGIFFLAGS and so forth and somehow I did not make it. Is there a working example somewhere which would be usable probably?
Thanks,
Sandor
|