(usagi-users 04101) Re: Manipulate Neighbor Cache Table
[email protected] (Arnaud Ebalard) Thu, 03 Feb 2011 18:54:29 +0100
| Newsgroups | gmane.linux.ipv6.usagi.users |
|---|---|
| Message-ID | <[email protected]> |
Hi, V=C3=A9io Nakamura <[email protected]> writes: > I'm really new here (just signed in the mailing list), and I'm working > with some implementations of IPv6. I was wondering if anyone here can > help or simply guide me to further readings regarding the Neighbor > Discovery implementation for IPv6. > > What I'm trying to do is manipulate the Neighbor Table from OS > (GNU/Linux, kernel 2.6.32, i686) from ioctl's calls. I thought I found > out what I needed, but unfortunately I realized that this is SunOS > specific implementation: > > (From http://compute.cnr.berkeley.edu/cgi-bin/man-cgi?if_tcp+7) > > SIOCLIFDELND Delete a neighbor cache entry for IPv6. > > SIOCLIFGETND Get a neighbor cache entry for IPv6. > > SIOCLIFSETND Set a neighbor cache entry for IPv6. > > (In lifreq structure) > > Does anyone knows if there's an GNU/Linux implementation for theses > ioctl calls for network devices? I am not aware you can do that for IPv6 neighbor cache. The native linux interface to interact with the IPv6 neighbor cache is Netlink. You should take a look at ip/ipneigh.c file in iproute package. Hope that helps, Cheers, a+