2000-01-06 12:40:54 +00:00
|
|
|
# Copyright (c) 1996 WIDE Project. All rights reserved.
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modifications, are permitted provided that the above copyright notice
|
|
|
|
# and this paragraph are duplicated in all such forms and that any
|
|
|
|
# documentation, advertising materials, and other materials related to
|
|
|
|
# such distribution and use acknowledge that the software was developed
|
|
|
|
# by the WIDE Project, Japan. The name of the Project may not be used to
|
|
|
|
# endorse or promote products derived from this software without
|
|
|
|
# specific prior written permission. THIS SOFTWARE IS PROVIDED ``AS IS''
|
|
|
|
# AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
|
|
|
|
# LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
# A PARTICULAR PURPOSE.
|
2001-07-20 06:20:32 +00:00
|
|
|
#
|
2000-01-06 12:40:54 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
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
|
|
|
.include <src.opts.mk>
|
|
|
|
|
2000-01-06 12:40:54 +00:00
|
|
|
PROG= rtadvd
|
2001-07-20 06:20:32 +00:00
|
|
|
MAN= rtadvd.conf.5 rtadvd.8
|
2011-07-17 19:24:54 +00:00
|
|
|
SRCS= rtadvd.c rrenum.c advcap.c if.c config.c timer.c timer_subr.c \
|
|
|
|
control.c control_server.c
|
2000-01-06 12:40:54 +00:00
|
|
|
|
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
|
|
|
.if ${MK_EXPERIMENTAL} != "no"
|
|
|
|
CFLAGS+= -DEXPERIMENTAL
|
|
|
|
CFLAGS+= -DDRAFT_IETF_6MAN_IPV6ONLY_FLAG
|
|
|
|
.endif
|
|
|
|
|
2014-11-25 16:57:27 +00:00
|
|
|
LIBADD= util
|
2010-12-22 23:58:21 +00:00
|
|
|
|
2011-06-06 20:14:50 +00:00
|
|
|
WARNS?= 1
|
2010-01-02 11:07:44 +00:00
|
|
|
|
2000-01-06 12:40:54 +00:00
|
|
|
.include <bsd.prog.mk>
|