3431d451a5
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 |
||
---|---|---|
.. | ||
advcap.c | ||
advcap.h | ||
config.c | ||
config.h | ||
control_client.c | ||
control_client.h | ||
control_server.c | ||
control_server.h | ||
control.c | ||
control.h | ||
if.c | ||
if.h | ||
Makefile | ||
Makefile.depend | ||
pathnames.h | ||
rrenum.c | ||
rrenum.h | ||
rtadvd.8 | ||
rtadvd.c | ||
rtadvd.conf | ||
rtadvd.conf.5 | ||
rtadvd.h | ||
timer_subr.c | ||
timer_subr.h | ||
timer.c | ||
timer.h |