freebsd-skq/etc/rc.d
dougb 2ae521fa83 Improve the handling of IPv6 configuration in rc.d. The ipv6_enable
and ipv6_ifconfig_<interface> options have already been deprecated,
these changes do not alter that.

With these changes any value set for ipv6_enable will emit a
warning. In order to avoid a POLA violation for the deprecation
of the option ipv6_enable=NO will still disable configuration
for all interfaces other than lo0. ipv6_enable=YES will not have
any effect, but will emit an additional warning. Support and
warnings for this option will be removed in FreeBSD 10.x.

Consistent with the current code, in order for IPv6 to be configured
on an interface (other than lo0) an ifconfig_<interface>_ipv6
option will have to be added to /etc/rc.conf[.local].

1. Clean up and minor optimizations for the following functions:
ifconfig_up (the ipv6 elements)
ipv6if
ipv6_autoconfif
get_if_var
_ifconfig_getargs
The cleanups generally were to move the "easy" tests earlier in the
functions, and consolidate duplicate code.

2. Stop overloading ipv6_prefer with the ability to disable IPv6
configuration.

3. Remove noafif() which was only ever called from ipv6_autoconfif.
Instead, simplify and integrate the tests into that function, and
convert the test to use is_wired_interface() instead of listing
wireless interfaces explicitly.

4. Integrate backwards compatibility for ipv6_ifconfig_<interface>
into _ifconfig_getargs. This dramatically simplifies the code in
all of the callers, and avoids a lot of other code duplication.

5. In rc.d/netoptions, add code for an ipv6_privacy option to use
RFC 4193 style pseudo-random addresses (this is what windows does
by default, FYI).

6. Add support for the [NO]RTADV options in ifconfig_getargs() and
ipv6_autoconfif(). In the latter, include support for the explicit
addition of [-]accept_rtadv in ifconfig_<interface>_ipv6 as is done
in the current code.

7. In rc.d/netif add a warning if $ipv6_enable is set, and remove
the set_rcvar_obsolete for it. Also remove the latter from
rc.d/ip6addrctl.

8. In /etc/defaults/rc.conf:

Add an example for RTADV configuration.

Set ipv6_network_interfaces to AUTO.

Switch ipv6_prefer to YES. If ipv6_enable is not set this will have
no effect.

Add a default for ipv6_privacy (NO).

9. Document all of this in rc.conf.5.
2010-04-09 01:35:09 +00:00
..
abi As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
accounting Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files 2007-12-08 07:20:23 +00:00
addswap Integrate rc.d/network_ipv6 into rc.d/netif: 2009-09-12 22:13:41 +00:00
adjkerntz As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
amd Substitute ypset for ypbind in REQUIRE lines. If you use ypset it has to 2009-06-01 04:55:13 +00:00
apm As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
apmd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
archdep Small cleanup, add (spurious) quotation marks around the value 2009-05-30 21:51:38 +00:00
atm1 As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
atm2 As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
atm3 As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
auditd As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
bgfsck In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
bluetooth With uart(4) default, change /dev/cuad# to /dev/cuau# and 2008-07-19 20:11:33 +00:00
bootparams
bridge As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
bsnmpd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
bthidd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
ccd
cleanvar Let rc and periodic infrastructure and newsyslog use the utmpx files. 2010-01-13 19:07:48 +00:00
cleartmp In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
cron
DAEMON
ddb As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
defaultroute - Add AF_IPX and AF_NATM to afexists(). 2009-10-02 02:24:25 +00:00
devd Integrate rc.d/network_ipv6 into rc.d/netif: 2009-09-12 22:13:41 +00:00
devfs Do not check for existence of symlink source for the link action. This 2010-01-23 11:42:31 +00:00
dhclient Add very limited support for the isc-dhclient. It will almostly certaintly 2008-04-15 23:03:35 +00:00
dmesg Remove a meaningless KEYWORD 2007-12-08 22:40:31 +00:00
dumpon As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
encswap As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
faith Remove a circular dependency on routing 2009-10-17 21:09:15 +00:00
FILESYSTEMS As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
fsck In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
ftp-proxy Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
ftpd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
gbde As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
geli As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
geli2 As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
gssd Implement support for RPCSEC_GSS authentication to both the NFS client 2008-11-03 10:38:00 +00:00
hastd Add missing KEYWORD line. 2010-02-19 09:18:26 +00:00
hcsecd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
hostapd As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
hostid In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
hostid_save Currently there is a problem with fscking UFS file systems created on 2009-07-29 05:23:52 +00:00
hostname In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
inetd
initrandom As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
ip6addrctl Improve the handling of IPv6 configuration in rc.d. The ipv6_enable 2010-04-09 01:35:09 +00:00
ipfilter Make the pf and ipfw firewalls start before netif, just like ipfilter 2009-06-01 05:35:03 +00:00
ipfs Make the pf and ipfw firewalls start before netif, just like ipfilter 2009-06-01 05:35:03 +00:00
ipfw Introduce new rc.conf variable firewall_coscripts. It can be used to 2010-02-08 18:51:24 +00:00
ipmon
ipnat Make the pf and ipfw firewalls start before netif, just like ipfilter 2009-06-01 05:35:03 +00:00
ipsec Fix the typo mentioned in the PR, and one additional. 2009-08-23 05:56:54 +00:00
ipxrouted As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
jail Implement the idea of parallel-only-at-start-time in a cleaner, more 2010-03-07 04:26:21 +00:00
kadmind As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
kerberos As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
keyserv Substitute ypset for ypbind in REQUIRE lines. If you use ypset it has to 2009-06-01 04:55:13 +00:00
kldxref As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
kpasswdd As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
ldconfig In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
local Output information only if /etc/rc.local exists. 2008-06-22 16:23:39 +00:00
localpkg As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
lockd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
LOGIN
lpd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
Makefile Please welcome HAST - Highly Avalable Storage. 2010-02-18 23:16:19 +00:00
mdconfig As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
mdconfig2 As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
mixer As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
motd In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
mountcritlocal In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
mountcritremote Don't say we're going to mount filesystems of a certain type unless 2008-06-22 15:40:19 +00:00
mountd Add support for the experimental nfs subsystem to the scripts in 2009-06-02 22:15:47 +00:00
mountlate As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
moused In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
mroute6d Integrate rc.d/network_ipv6 into rc.d/netif: 2009-09-12 22:13:41 +00:00
mrouted
msgs As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
named s/named_confidr/named_confdir/ in the rndc.key check. The line in 2010-01-01 22:10:07 +00:00
natd As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
netif Improve the handling of IPv6 configuration in rc.d. The ipv6_enable 2010-04-09 01:35:09 +00:00
netoptions Improve the handling of IPv6 configuration in rc.d. The ipv6_enable 2010-04-09 01:35:09 +00:00
NETWORKING Integrate rc.d/network_ipv6 into rc.d/netif: 2009-09-12 22:13:41 +00:00
newsyslog In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
nfscbd Add support for the experimental nfs subsystem to the scripts in 2009-06-02 22:15:47 +00:00
nfsclient In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
nfsd Add support for the experimental nfs subsystem to the scripts in 2009-06-02 22:15:47 +00:00
nfsserver As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
nfsuserd Add support for the experimental nfs subsystem to the scripts in 2009-06-02 22:15:47 +00:00
nisdomain Substitute ypset for ypbind in REQUIRE lines. If you use ypset it has to 2009-06-01 04:55:13 +00:00
nscd Small cleanup, add (spurious) quotation marks around the value 2009-05-30 21:51:38 +00:00
nsswitch Forced commit, to provide correct commit message for r201440: 2010-01-03 21:27:10 +00:00
ntpd Small cleanup, add (spurious) quotation marks around the value 2009-05-30 21:51:38 +00:00
ntpdate Allow use of -6 option to "server" and "peer" in ntp.conf. 2010-01-30 16:34:52 +00:00
othermta As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
pf In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
pflog Reverse the effect of r193198 for pf and ipfw which will once again 2009-06-26 01:04:50 +00:00
pfsync Reverse the effect of r193198 for pf and ipfw which will once again 2009-06-26 01:04:50 +00:00
power_profile As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
powerd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
ppp Protect cross-script invocation by checking that the target script exists. 2009-09-14 16:52:38 +00:00
pppoed As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
pwcheck
quota Substitute ypset for ypbind in REQUIRE lines. If you use ypset it has to 2009-06-01 04:55:13 +00:00
random As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
rarpd
resolv As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
rfcomm_pppd_server As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
root Do nextboot -D twice during boot. The first time in rc.d/root which ensures that 2008-03-11 17:21:14 +00:00
route6d Add an extension of set_rcvar(), a new function set_rcvar_obsolete(), 2009-09-12 22:19:48 +00:00
routed Add an extension of set_rcvar(), a new function set_rcvar_obsolete(), 2009-09-12 22:19:48 +00:00
routing - Enable an afexists() check only when no AF argument is specified. 2009-10-02 20:19:53 +00:00
rpcbind Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
rtadvd Use ipv6if() when $rtadvd_interfaces="AUTO". 2009-09-26 19:00:47 +00:00
rtsold Add the shutdown KEYWORD. 2010-02-27 19:02:21 +00:00
rwho Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
savecore In regards to the "Starting foo:" type messages at boot time, create and 2009-10-10 22:17:03 +00:00
sdpd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
securelevel
sendmail Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
serial With uart(4) default, change /dev/cuad# to /dev/cuau# and 2008-07-19 20:12:02 +00:00
SERVERS
sppp As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
sshd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
statd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
static_arp Set svn:executable to *. 2010-01-11 23:32:36 +00:00
stf Remove a circular dependency on routing 2009-10-17 21:09:15 +00:00
swap1 Backout previous commit due to PEBKAC 2009-03-11 12:55:12 +00:00
syscons As previously discussed, add the svn:executable property to all scripts 2008-07-16 19:22:48 +00:00
sysctl Integrate rc.d/network_ipv6 into rc.d/netif: 2009-09-12 22:13:41 +00:00
syslogd
timed Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
tmp Use an unique directory name instead of hardcoded /tmp/.diskless. 2010-03-13 12:02:44 +00:00
ugidfw Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
var Let rc and periodic infrastructure and newsyslog use the utmpx files. 2010-01-13 19:07:48 +00:00
virecover
watchdogd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
wpa_supplicant Move is_wired_interface() from rc.d/wpa_supplicant into network.subr, 2009-08-23 05:47:19 +00:00
ypbind Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
yppasswdd Substitute ypset for ypbind in REQUIRE lines. If you use ypset it has to 2009-06-01 04:55:13 +00:00
ypserv Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
ypset Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
ypupdated Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
ypxfrd Add the shutdown KEYWORD to those scripts that start persistent services 2008-07-16 19:50:29 +00:00
zfs Currently there is a problem with fscking UFS file systems created on 2009-07-29 05:23:52 +00:00
zvol Currently there is a problem with fscking UFS file systems created on 2009-07-29 05:23:52 +00:00