freebsd-skq/usr.sbin/rtadvd
bz 3431d451a5 Initial implementation of draft-ietf-6man-ipv6only-flag.
This change defines the RA "6" (IPv6-Only) flag which routers
may advertise, kernel logic to check if all routers on a link
have the flag set and accordingly update a per-interface flag.

If all routers agree that it is an IPv6-only link, ether_output_frame(),
based on the interface flag, will filter out all ETHERTYPE_IP/ARP
frames, drop them, and return EAFNOSUPPORT to upper layers.

The change also updates ndp to show the "6" flag, ifconfig to
display the IPV6_ONLY nd6 flag if set, and rtadvd to allow
announcing the flag.

Further changes to tcpdump (contrib code) are availble and will
be upstreamed.

Tested the code (slightly earlier version) with 2 FreeBSD
IPv6 routers, a FreeBSD laptop on ethernet as well as wifi,
and with Win10 and OSX clients (which did not fall over with
the "6" flag set but not understood).

We may also want to (a) implement and RX filter, and (b) over
time enahnce user space to, say, stop dhclient from running
when the interface flag is set.  Also we might want to start
IPv6 before IPv4 in the future.

All the code is hidden under the EXPERIMENTAL option and not
compiled by default as the draft is a work-in-progress and
we cannot rely on the fact that IANA will assign the bits
as requested by the draft and hence they may change.

Dear 6man, you have running code.

Discussed with:	Bob Hinden, Brian E Carpenter
2018-10-30 20:08:48 +00:00
..
advcap.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
advcap.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
config.c Initial implementation of draft-ietf-6man-ipv6only-flag. 2018-10-30 20:08:48 +00:00
config.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
control_client.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
control_client.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
control_server.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
control_server.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
control.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
control.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
if.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
if.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
Makefile Initial implementation of draft-ietf-6man-ipv6only-flag. 2018-10-30 20:08:48 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
pathnames.h
rrenum.c Reduce <sys/queue.h> pollution. 2018-05-11 00:01:43 +00:00
rrenum.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
rtadvd.8
rtadvd.c Initial implementation of draft-ietf-6man-ipv6only-flag. 2018-10-30 20:08:48 +00:00
rtadvd.conf
rtadvd.conf.5
rtadvd.h Initial implementation of draft-ietf-6man-ipv6only-flag. 2018-10-30 20:08:48 +00:00
timer_subr.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
timer_subr.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
timer.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
timer.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00