Re: Get ARP/ND tables from kernel

2017-08-28 Thread Bassam Alsanie
PJ, Thank you. strace is really gonna help :) It seem using Netlink (NETLINK_ROUTE) interface is the way to get the arp/tables form kernel programmatically. Thank you, Bassam On Sun, Aug 27, 2017 at 7:53 PM, Waskiewicz Jr, Peter wrote: > On 8/27/17 9:25 PM, Bassam Alsanie wrote: >> Hello everyon

Re: Get ARP/ND tables from kernel

2017-08-27 Thread Waskiewicz Jr, Peter
On 8/27/17 9:25 PM, Bassam Alsanie wrote: > Hello everyone, > I looking into a good way (stable and compatible with large number of > distros) to get the arp/nd cache from kernel to user space, for both > IP4 and IP6. > > It seem IOCTL (SIOCGARP) can't do that, you can only get MAC address > from

Get ARP/ND tables from kernel

2017-08-27 Thread Bassam Alsanie
Hello everyone, I looking into a good way (stable and compatible with large number of distros) to get the arp/nd cache from kernel to user space, for both IP4 and IP6. It seem IOCTL (SIOCGARP) can't do that, you can only get MAC address from provided IP address. But IOCTL can't give the the full a