Using netlink to obtain arp entries only returns stale entries
- by Ben
I'm currently trying to retrieve reachable neighbors from the arp table in a user space program written in c. I've looked through the source code to the "ip neigh" command (ipneigh.c) and it appears that I should use the flag NUD_REACHABLE.
struct {
struct nlmsghdr n;
struct ndmsg r;
} req;
memset(&req, 0, sizeof(req));
req.n.nlmsg_len =…