2eb62239d7
automatic link-local address configuration: - Convert a sysctl net.inet6.ip6.accept_rtadv to one for the default value of a per-IF flag ND6_IFF_ACCEPT_RTADV, not a global knob. The default value of the sysctl is 0. - Add a new per-IF flag ND6_IFF_AUTO_LINKLOCAL and convert a sysctl net.inet6.ip6.auto_linklocal to one for its default value. The default value of the sysctl is 1. - Make ND6_IFF_IFDISABLED more robust. It can be used to disable IPv6 functionality of an interface now. - Receiving RA is allowed if ip6_forwarding==0 *and* ND6_IFF_ACCEPT_RTADV is set on that interface. The former condition will be revisited later to support a "host + router" box like IPv6 CPE router. The current behavior is compatible with the older releases of FreeBSD. - The ifconfig(8) now supports these ND6 flags as well as "nud", "prefer_source", and "disabled" in ndp(8). The ndp(8) now supports "auto_linklocal". Discussed with: bz and jinmei Reviewed by: bz MFC after: 3 days
53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
# From: @(#)Makefile 8.1 (Berkeley) 6/5/93
|
|
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
PROG= ifconfig
|
|
|
|
SRCS= ifconfig.c # base support
|
|
|
|
#
|
|
# NB: The order here defines the order in which the constructors
|
|
# are called. This in turn defines the default order in which
|
|
# status is displayed. Probably should add a priority mechanism
|
|
# to the registration process so we don't depend on this aspect
|
|
# of the toolchain.
|
|
#
|
|
SRCS+= af_link.c # LLC support
|
|
SRCS+= af_inet.c # IPv4 support
|
|
SRCS+= af_inet6.c # IPv6 support
|
|
SRCS+= af_atalk.c # AppleTalk support
|
|
SRCS+= af_nd6.c # ND6 support
|
|
|
|
SRCS+= ifclone.c # clone device support
|
|
SRCS+= ifmac.c # MAC support
|
|
SRCS+= ifmedia.c # SIOC[GS]IFMEDIA support
|
|
SRCS+= ifvlan.c # SIOC[GS]ETVLAN support
|
|
SRCS+= ifgre.c # GRE keys etc
|
|
SRCS+= ifgif.c # GIF reversed header workaround
|
|
|
|
SRCS+= ifieee80211.c regdomain.c # SIOC[GS]IEEE80211 support
|
|
DPADD+= ${LIBBSDXML} ${LIBSBUF} ${LIBJAIL}
|
|
LDADD+= -lbsdxml -ljail -lsbuf
|
|
|
|
SRCS+= ifcarp.c # SIOC[GS]VH support
|
|
SRCS+= ifgroup.c # ...
|
|
SRCS+= ifpfsync.c # pfsync(4) support
|
|
|
|
SRCS+= ifbridge.c # bridge support
|
|
SRCS+= iflagg.c # lagg support
|
|
|
|
.if ${MK_IPX_SUPPORT} != "no" && !defined(RELEASE_CRUNCH)
|
|
SRCS+= af_ipx.c # IPX support
|
|
DPADD+= ${LIBIPX}
|
|
LDADD+= -lipx
|
|
.endif
|
|
|
|
MAN= ifconfig.8
|
|
|
|
CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
|
|
WARNS?= 0
|
|
|
|
.include <bsd.prog.mk>
|