]> bbs.cooldavid.org Git - net-next-2.6.git/commit
[IPv6]: Export userland ND options through netlink (RDNSS support)
authorPierre Ynard <linkfanel@yahoo.fr>
Thu, 11 Oct 2007 04:22:05 +0000 (21:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2007 04:22:05 +0000 (21:22 -0700)
commit31910575a9de61e78065e93846e8e7a4894a18bf
tree5dcc41957a62b8ec06575ebfe47c75828caf8bfb
parent092e9d93b3728d484a4e73df9852dc4002cf9923
[IPv6]: Export userland ND options through netlink (RDNSS support)

As discussed before, this patch provides userland with a way to access
relevant options in Router Advertisements, after they are processed
and validated by the kernel. Extra options are processed in a generic
way; this patch only exports RDNSS options described in RFC5006, but
support to control which options are exported could be easily added.

A new rtnetlink message type is defined, to transport Neighbor
Discovery options, along with optional context information. At the
moment only the address of the router sending an RDNSS option is
included, but additional attributes may be later defined, if needed by
new use cases.

Signed-off-by: Pierre Ynard <linkfanel@yahoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rtnetlink.h
include/net/ndisc.h
net/ipv6/ndisc.c