I want to get the routing information, similar to netstat -nr, along
with the MAC address for each IP address from a c program on QNX 6.1.
I’ve tried with sysctl() but just couldn’t get/didn’t have enough
information to use it properly. Does anyone know of a relatively
straightforward way of getting this?
The most relevant information I’ve found so far is this previous post:
Mike Lee wrote:
Does anyone know the most efficient way of accessing the arp table.
I need
to decode the MAC addresses of some devices on the ethernet network.
I know
the IPs but need to know their MACs. Any suggestion is appreciated.
Forgot to mention that the posting I referenced refers only to the ARP,
not route, information.
Ron wrote:
I want to get the routing information, similar to netstat -nr, along
with the MAC address for each IP address from a c program on QNX 6.1.
I’ve tried with sysctl() but just couldn’t get/didn’t have enough
information to use it properly. Does anyone know of a relatively
straightforward way of getting this?
The most relevant information I’ve found so far is this previous post:
Mike Lee wrote:
Does anyone know the most efficient way of accessing the arp table.
I need
to decode the MAC addresses of some devices on the ethernet network.
I know
the IPs but need to know their MACs. Any suggestion is appreciated.