Wed Apr 22 17:55:16 2020 UTC ()
Pull up following revision(s) (requested by kim in ticket #838):

	share/man/man5/ifconfig.if.5: revision 1.20
	etc/rc.d/network: revision 1.78 (plus patch)
	usr.sbin/rtsold/rtsold.8: revision 1.42

Add an "rtsol" keyword to ifconfig.if for enabling IPv6 RS/RA

Sort SEE ALSO.
Update date


(martin)
diff -r1.76 -r1.76.2.1 src/etc/rc.d/network
diff -r1.18 -r1.18.18.1 src/share/man/man5/ifconfig.if.5
diff -r1.37 -r1.37.6.1 src/usr.sbin/rtsold/rtsold.8

cvs diff -r1.76 -r1.76.2.1 src/etc/rc.d/network (expand / switch to unified diff)

--- src/etc/rc.d/network 2018/10/23 09:25:33 1.76
+++ src/etc/rc.d/network 2020/04/22 17:55:16 1.76.2.1
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1#!/bin/sh 1#!/bin/sh
2# 2#
3# $NetBSD: network,v 1.76 2018/10/23 09:25:33 mrg Exp $ 3# $NetBSD: network,v 1.76.2.1 2020/04/22 17:55:16 martin Exp $
4# 4#
5 5
6# PROVIDE: network 6# PROVIDE: network
7# REQUIRE: ipfilter ipsec mountcritlocal root tty sysctl 7# REQUIRE: ipfilter ipsec mountcritlocal root tty sysctl
8# BEFORE: NETWORKING 8# BEFORE: NETWORKING
9 9
10$_rc_subr_loaded . /etc/rc.subr 10$_rc_subr_loaded . /etc/rc.subr
11 11
12name="network" 12name="network"
13start_cmd="network_start" 13start_cmd="network_start"
14stop_cmd="network_stop" 14stop_cmd="network_stop"
15 15
16nl=' 16nl='
@@ -205,27 +205,28 @@ network_start_interfaces() @@ -205,27 +205,28 @@ network_start_interfaces()
205{ 205{
206 # Configure all of the network interfaces listed in $net_interfaces; 206 # Configure all of the network interfaces listed in $net_interfaces;
207 # if $auto_ifconfig is YES, grab all interfaces from ifconfig. 207 # if $auto_ifconfig is YES, grab all interfaces from ifconfig.
208 # In the following, "xxN" stands in for interface names, like "le0". 208 # In the following, "xxN" stands in for interface names, like "le0".
209 # 209 #
210 # For any interfaces that has an $ifconfig_xxN variable 210 # For any interfaces that has an $ifconfig_xxN variable
211 # associated, we break it into lines using ';' as a separator, 211 # associated, we break it into lines using ';' as a separator,
212 # then process it just like the contents of an /etc/ifconfig.xxN 212 # then process it just like the contents of an /etc/ifconfig.xxN
213 # file. 213 # file.
214 # 214 #
215 # For each line from the $ifconfig_xxN variable or the 215 # For each line from the $ifconfig_xxN variable or the
216 # /etc/ifconfig.xxN file, we ignore comments and blank lines, 216 # /etc/ifconfig.xxN file, we ignore comments and blank lines,
217 # treat lines beginning with "!" as commands to execute, treat 217 # treat lines beginning with "!" as commands to execute, treat
218 # "dhcp" as a special case to invoke dhcpcd, and for any other 218 # "dhcp" as a special case to invoke dhcpcd, treat "rtsol" as
 219 # a special case to send a router solicitation, and for any other
219 # line we run "ifconfig xxN", using each line of the file as the 220 # line we run "ifconfig xxN", using each line of the file as the
220 # arguments for a separate "ifconfig" invocation. 221 # arguments for a separate "ifconfig" invocation.
221 # 222 #
222 # In order to configure an interface reasonably, you at the very least 223 # In order to configure an interface reasonably, you at the very least
223 # need to specify "[addr_family] [hostname]" (e.g "inet my.domain.org"), 224 # need to specify "[addr_family] [hostname]" (e.g "inet my.domain.org"),
224 # and probably a netmask (as in "netmask 0xffffffe0"). You will 225 # and probably a netmask (as in "netmask 0xffffffe0"). You will
225 # frequently need to specify a media type, as in "media UTP", for 226 # frequently need to specify a media type, as in "media UTP", for
226 # interface cards with multiple media connections that do not 227 # interface cards with multiple media connections that do not
227 # autoconfigure. See the ifconfig manual page for details. 228 # autoconfigure. See the ifconfig manual page for details.
228 # 229 #
229 # Note that /etc/ifconfig.xxN takes multiple lines. The following 230 # Note that /etc/ifconfig.xxN takes multiple lines. The following
230 # configuration is possible: 231 # configuration is possible:
231 # inet 10.1.1.1 netmask 0xffffff00 232 # inet 10.1.1.1 netmask 0xffffff00
@@ -312,26 +313,34 @@ network_start_interfaces() @@ -312,26 +313,34 @@ network_start_interfaces()
312 case "$args" in 313 case "$args" in
313 ''|"#"*|create) 314 ''|"#"*|create)
314 ;; 315 ;;
315 "!"*) 316 "!"*)
316 # Run arbitrary command in a subshell. 317 # Run arbitrary command in a subshell.
317 ( eval "${args#*!}" ) 318 ( eval "${args#*!}" )
318 ;; 319 ;;
319 dhcp) 320 dhcp)
320 if ! checkyesno dhcpcd; then 321 if ! checkyesno dhcpcd; then
321 /sbin/dhcpcd -n \ 322 /sbin/dhcpcd -n \
322 ${dhcpcd_flags} $int 323 ${dhcpcd_flags} $int
323 fi 324 fi
324 ;; 325 ;;
 326 rtsol)
 327 if ! checkyesno dhcpcd; then
 328 /sbin/sysctl -qw \
 329 net.inet6.ip6.accept_rtadv=1
 330 /sbin/dhcpcd -q6T --nodhcp6 $int \
 331 >/dev/null
 332 fi
 333 ;;
325 *) 334 *)
326 # Pass args to ifconfig. Note 335 # Pass args to ifconfig. Note
327 # that args may contain embedded 336 # that args may contain embedded
328 # shell metacharacters, such as 337 # shell metacharacters, such as
329 # "ssid 'foo;*>bar'". We eval 338 # "ssid 'foo;*>bar'". We eval
330 # one more time so that things 339 # one more time so that things
331 # like ssid "Columbia University" work. 340 # like ssid "Columbia University" work.
332 ( 341 (
333 set -o noglob 342 set -o noglob
334 eval set -- $args 343 eval set -- $args
335 #echo >&2 "[$#] [$1] [$2] [$3]" 344 #echo >&2 "[$#] [$1] [$2] [$3]"
336 /sbin/ifconfig $int "$@" 345 /sbin/ifconfig $int "$@"
337 ) 346 )

cvs diff -r1.18 -r1.18.18.1 src/share/man/man5/ifconfig.if.5 (expand / switch to unified diff)

--- src/share/man/man5/ifconfig.if.5 2014/12/29 14:22:25 1.18
+++ src/share/man/man5/ifconfig.if.5 2020/04/22 17:55:16 1.18.18.1
@@ -1,40 +1,40 @@ @@ -1,40 +1,40 @@
1.\" $NetBSD: ifconfig.if.5,v 1.18 2014/12/29 14:22:25 wiz Exp $ 1.\" $NetBSD: ifconfig.if.5,v 1.18.18.1 2020/04/22 17:55:16 martin Exp $
2.\" 2.\"
3.\" Copyright (c) 1996 Matthew R. Green 3.\" Copyright (c) 1996 Matthew R. Green
4.\" All rights reserved. 4.\" All rights reserved.
5.\" 5.\"
6.\" Redistribution and use in source and binary forms, with or without 6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions 7.\" modification, are permitted provided that the following conditions
8.\" are met: 8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright 9.\" 1. Redistributions of source code must retain the above copyright
10.\" notice, this list of conditions and the following disclaimer. 10.\" notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright 11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\" notice, this list of conditions and the following disclaimer in the 12.\" notice, this list of conditions and the following disclaimer in the
13.\" documentation and/or other materials provided with the distribution. 13.\" documentation and/or other materials provided with the distribution.
14.\" 14.\"
15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
20.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 20.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 21.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
22.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 22.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25.\" SUCH DAMAGE. 25.\" SUCH DAMAGE.
26.\" 26.\"
27.Dd December 18, 2014 27.Dd April 15, 2020
28.Dt IFCONFIG.IF 5 28.Dt IFCONFIG.IF 5
29.Os 29.Os
30.Sh NAME 30.Sh NAME
31.Nm ifconfig.if 31.Nm ifconfig.if
32.Nd interface-specific configuration files or variables 32.Nd interface-specific configuration files or variables
33.Sh DESCRIPTION 33.Sh DESCRIPTION
34The 34The
35.Nm 35.Nm
36files or variables contain information regarding the configuration 36files or variables contain information regarding the configuration
37of each network interface. 37of each network interface.
38.Nm 38.Nm
39is processed by 39is processed by
40.Pa /etc/rc.d/network 40.Pa /etc/rc.d/network

cvs diff -r1.37 -r1.37.6.1 src/usr.sbin/rtsold/rtsold.8 (expand / switch to unified diff)

--- src/usr.sbin/rtsold/rtsold.8 2017/10/22 18:09:33 1.37
+++ src/usr.sbin/rtsold/rtsold.8 2020/04/22 17:55:16 1.37.6.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: rtsold.8,v 1.37 2017/10/22 18:09:33 abhinav Exp $ 1.\" $NetBSD: rtsold.8,v 1.37.6.1 2020/04/22 17:55:16 martin Exp $
2.\" $KAME: rtsold.8,v 1.17 2001/07/09 22:30:37 itojun Exp $ 2.\" $KAME: rtsold.8,v 1.17 2001/07/09 22:30:37 itojun Exp $
3.\" 3.\"
4.\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 4.\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
5.\" All rights reserved. 5.\" All rights reserved.
6.\" 6.\"
7.\" Redistribution and use in source and binary forms, with or without 7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions 8.\" modification, are permitted provided that the following conditions
9.\" are met: 9.\" are met:
10.\" 1. Redistributions of source code must retain the above copyright 10.\" 1. Redistributions of source code must retain the above copyright
11.\" notice, this list of conditions and the following disclaimer. 11.\" notice, this list of conditions and the following disclaimer.
12.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" 2. Redistributions in binary form must reproduce the above copyright
13.\" notice, this list of conditions and the following disclaimer in the 13.\" notice, this list of conditions and the following disclaimer in the
14.\" documentation and/or other materials provided with the distribution. 14.\" documentation and/or other materials provided with the distribution.
@@ -18,27 +18,27 @@ @@ -18,27 +18,27 @@
18.\" 18.\"
19.\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND 19.\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
20.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22.\" ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE 22.\" ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
23.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29.\" SUCH DAMAGE. 29.\" SUCH DAMAGE.
30.\" 30.\"
31.Dd October 12, 2014 31.Dd April 15, 2020
32.Dt RTSOLD 8 32.Dt RTSOLD 8
33.Os 33.Os
34.\" 34.\"
35.Sh NAME 35.Sh NAME
36.Nm rtsold , 36.Nm rtsold ,
37.Nm rtsol 37.Nm rtsol
38.Nd router solicitation daemon 38.Nd router solicitation daemon
39.\" 39.\"
40.Sh DESCRIPTION 40.Sh DESCRIPTION
41.Nm 41.Nm
42and 42and
43.Nm rtsol 43.Nm rtsol
44have been removed from 44have been removed from