On Sunday 22 September 2013 19:09:31 Sven Eckelmann wrote:
The /proc/net/arp based solution to resolve mac addresses from IP adresses is limited to IPv4 addresses. The table for IPv6 addresses to MAC addresses is only available through rtnetlink. rtnetlink also provides the IPv4 neighbor table and should therefore should be prefered over the /proc/net/arp solution to build an infrastructure for further work on the resolver.
Signed-off-by: Sven Eckelmann sven@narfation.org
V2:
- optimize for large ARP caches
functions.c | 251 +++++++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 188 insertions(+), 63 deletions(-)
Applied in revision 4885dc1.
Thanks, Marek