head 1.76; access; symbols cjep_sun2x:1.76.0.46 cjep_sun2x-base:1.76 cjep_staticlib_x-base1:1.76 cjep_staticlib_x:1.76.0.44 cjep_staticlib_x-base:1.76 phil-wifi-20200421:1.76 phil-wifi-20200411:1.76 phil-wifi-20200406:1.76 pgoyette-compat-merge-20190127:1.76 pgoyette-compat-20190127:1.76 pgoyette-compat-20190118:1.76 pgoyette-compat-1226:1.76 pgoyette-compat-1126:1.76 pgoyette-compat-1020:1.76 pgoyette-compat-0930:1.76 pgoyette-compat-0906:1.76 pgoyette-compat-0728:1.76 pgoyette-compat-0625:1.76 pgoyette-compat-0521:1.76 pgoyette-compat-0502:1.76 pgoyette-compat-0422:1.76 pgoyette-compat-0415:1.76 pgoyette-compat-0407:1.76 pgoyette-compat-0330:1.76 pgoyette-compat-0322:1.76 pgoyette-compat-0315:1.76 pgoyette-compat:1.76.0.42 pgoyette-compat-base:1.76 perseant-stdc-iso10646:1.76.0.40 perseant-stdc-iso10646-base:1.76 prg-localcount2-base3:1.76 prg-localcount2-base2:1.76 prg-localcount2-base1:1.76 prg-localcount2:1.76.0.38 prg-localcount2-base:1.76 pgoyette-localcount-20170426:1.76 bouyer-socketcan-base1:1.76 pgoyette-localcount-20170320:1.76 bouyer-socketcan:1.76.0.36 bouyer-socketcan-base:1.76 pgoyette-localcount-20170107:1.76 pgoyette-localcount-20161104:1.76 localcount-20160914:1.76 pgoyette-localcount-20160806:1.76 pgoyette-localcount-20160726:1.76 pgoyette-localcount:1.76.0.34 pgoyette-localcount-base:1.76 netbsd-5-2-3-RELEASE:1.76 netbsd-5-1-5-RELEASE:1.76 yamt-pagecache-base9:1.76 yamt-pagecache-tag8:1.76 tls-earlyentropy:1.76.0.30 tls-earlyentropy-base:1.76 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.76 riastradh-drm2-base3:1.76 netbsd-5-2-2-RELEASE:1.76 netbsd-5-1-4-RELEASE:1.76 netbsd-5-2-1-RELEASE:1.76 netbsd-5-1-3-RELEASE:1.76 agc-symver:1.76.0.32 agc-symver-base:1.76 tls-maxphys-base:1.76 yamt-pagecache-base8:1.76 netbsd-5-2:1.76.0.28 yamt-pagecache-base7:1.76 netbsd-5-2-RELEASE:1.76 netbsd-5-2-RC1:1.76 yamt-pagecache-base6:1.76 yamt-pagecache-base5:1.76 yamt-pagecache-base4:1.76 netbsd-5-1-2-RELEASE:1.76 netbsd-5-1-1-RELEASE:1.76 yamt-pagecache-base3:1.76 yamt-pagecache-base2:1.76 yamt-pagecache:1.76.0.26 yamt-pagecache-base:1.76 bouyer-quota2-nbase:1.76 bouyer-quota2:1.76.0.24 bouyer-quota2-base:1.76 matt-nb5-pq3:1.76.0.22 matt-nb5-pq3-base:1.76 netbsd-5-1:1.76.0.20 netbsd-5-1-RELEASE:1.76 netbsd-5-1-RC4:1.76 netbsd-5-1-RC3:1.76 netbsd-5-1-RC2:1.76 netbsd-5-1-RC1:1.76 netbsd-5-0-2-RELEASE:1.76 netbsd-5-0-1-RELEASE:1.76 jym-xensuspend-nbase:1.76 netbsd-5-0:1.76.0.18 netbsd-5-0-RELEASE:1.76 netbsd-5-0-RC4:1.76 netbsd-5-0-RC3:1.76 netbsd-5-0-RC2:1.76 jym-xensuspend:1.76.0.16 jym-xensuspend-base:1.76 netbsd-5-0-RC1:1.76 mjf-devfs2-base2:1.76 netbsd-5:1.76.0.14 netbsd-5-base:1.76 yamt-pf42-base4:1.76 yamt-pf42-base3:1.76 hpcarm-cleanup-nbase:1.76 yamt-pf42-base2:1.76 yamt-pf42:1.76.0.12 yamt-pf42-base:1.76 mjf-devfs2:1.76.0.10 mjf-devfs2-base:1.76 keiichi-mipv6:1.76.0.8 keiichi-mipv6-base:1.76 mjf-devfs:1.76.0.6 mjf-devfs-base:1.76 cube-autoconf:1.76.0.4 cube-autoconf-base:1.76 hpcarm-cleanup:1.76.0.2 hpcarm-cleanup-base:1.76 netbsd-1-4-PATCH003:1.55.2.1 netbsd-1-4-PATCH002:1.55.2.1 wrstuden-devbsize-19991221:1.67 wrstuden-devbsize:1.62.0.4 wrstuden-devbsize-base:1.67 comdex-fall-1999:1.62.0.2 comdex-fall-1999-base:1.62 netbsd-1-4-PATCH001:1.55 netbsd-1-4-RELEASE:1.55 netbsd-1-4:1.55.0.2 netbsd-1-4-base:1.55 netbsd-1-3-PATCH003:1.47.2.2 netbsd-1-3-PATCH003-CANDIDATE2:1.47.2.2 netbsd-1-3-PATCH003-CANDIDATE1:1.47.2.2 netbsd-1-3-PATCH003-CANDIDATE0:1.47.2.2 netbsd-1-3-PATCH002:1.47.2.1 netbsd-1-3-PATCH001:1.47.2.1 netbsd-1-3-RELEASE:1.47.2.1 netbsd-1-3-BETA:1.47.2.1 netbsd-1-3:1.47.0.2 netbsd-1-3-base:1.47 netbsd-1-2-PATCH001:1.23 lite-2:1.1.1.2 lite-1:1.1.1.2 CSRG:1.1.1 netbsd-1-2-RELEASE:1.23 netbsd-1-2-BETA:1.23 netbsd-1-2-base:1.23 netbsd-1-2:1.23.0.4 netbsd-1-1-PATCH001:1.21 netbsd-1-1-RELEASE:1.21 netbsd-1-1:1.21.0.2 netbsd-1-1-base:1.21 netbsd-1-0-PATCH06:1.18 netbsd-1-0-PATCH05:1.18 netbsd-1-0-PATCH04:1.18 netbsd-1-0-PATCH03:1.18 netbsd-1-0-PATCH02:1.18 netbsd-1-0-PATCH1:1.18 netbsd-1-0-PATCH0:1.18 netbsd-1-0-RELEASE:1.18 netbsd-1-0:1.18.0.2 netbsd-1-0-base:1.18 netbsd-0-9-RELEASE:1.8 netbsd-0-9-BETA:1.8 netbsd-0-9-ALPHA2:1.8 netbsd-0-9-ALPHA:1.8 netbsd-0-9:1.8.0.2 netbsd-0-9-base:1.8 netbsd-0-8:1.7 netbsd-alpha-1:1.7 patchkit-0-2-2:1.1.1.1 WFJ-386bsd-01:1.1.1.1 WFJ-920714:1.1.1; locks; strict; comment @# @; 1.76 date 2000.05.13.08.02.35; author lukem; state dead; branches; next 1.75; 1.75 date 2000.05.03.07.04.22; author itojun; state Exp; branches; next 1.74; 1.74 date 2000.02.13.07.47.26; author itojun; state Exp; branches; next 1.73; 1.73 date 2000.02.11.08.09.56; author itojun; state Exp; branches; next 1.72; 1.72 date 2000.02.09.16.24.03; author itojun; state Exp; branches; next 1.71; 1.71 date 2000.02.05.17.52.06; author itojun; state Exp; branches; next 1.70; 1.70 date 2000.02.05.17.02.42; author itojun; state Exp; branches; next 1.69; 1.69 date 2000.01.26.07.01.53; author explorer; state Exp; branches; next 1.68; 1.68 date 2000.01.17.02.37.59; author itojun; state Exp; branches; next 1.67; 1.67 date 99.12.20.15.51.14; author itojun; state Exp; branches; next 1.66; 1.66 date 99.12.20.15.12.23; author itojun; state Exp; branches; next 1.65; 1.65 date 99.12.09.14.18.07; author itojun; state Exp; branches; next 1.64; 1.64 date 99.11.29.01.40.33; author itojun; state Exp; branches; next 1.63; 1.63 date 99.11.08.09.29.24; author erh; state Exp; branches; next 1.62; 1.62 date 99.09.06.18.52.33; author itojun; state Exp; branches 1.62.4.1; next 1.61; 1.61 date 99.09.03.13.40.15; author itojun; state Exp; branches; next 1.60; 1.60 date 99.07.04.12.51.30; author itojun; state Exp; branches; next 1.59; 1.59 date 99.07.04.05.20.52; author itojun; state Exp; branches; next 1.58; 1.58 date 99.07.03.03.40.52; author itojun; state Exp; branches; next 1.57; 1.57 date 99.07.03.03.29.29; author itojun; state Exp; branches; next 1.56; 1.56 date 99.05.28.21.01.42; author christos; state Exp; branches; next 1.55; 1.55 date 99.03.24.19.03.10; author mellon; state Exp; branches 1.55.2.1; next 1.54; 1.54 date 99.03.02.23.10.17; author abs; state Exp; branches; next 1.53; 1.53 date 98.11.25.03.54.27; author abs; state Exp; branches; next 1.52; 1.52 date 98.05.11.18.59.23; author fair; state Exp; branches; next 1.51; 1.51 date 98.01.26.12.02.47; author lukem; state Exp; branches; next 1.50; 1.50 date 98.01.24.19.12.54; author veego; state Exp; branches; next 1.49; 1.49 date 97.12.20.20.11.55; author christos; state Exp; branches; next 1.48; 1.48 date 97.11.17.17.45.28; author mrg; state Exp; branches; next 1.47; 1.47 date 97.09.26.07.44.07; author lukem; state Exp; branches 1.47.2.1; next 1.46; 1.46 date 97.09.08.02.43.26; author mikel; state Exp; branches; next 1.45; 1.45 date 97.09.07.09.47.31; author mycroft; state Exp; branches; next 1.44; 1.44 date 97.08.29.10.09.38; author veego; state Exp; branches; next 1.43; 1.43 date 97.08.29.02.24.04; author cjs; state Exp; branches; next 1.42; 1.42 date 97.08.28.18.18.17; author mycroft; state Exp; branches; next 1.41; 1.41 date 97.08.04.06.09.49; author lukem; state Exp; branches; next 1.40; 1.40 date 97.07.22.18.41.08; author phil; state Exp; branches; next 1.39; 1.39 date 97.05.22.21.41.09; author cjs; state Exp; branches; next 1.38; 1.38 date 97.05.22.21.29.49; author cjs; state Exp; branches; next 1.37; 1.37 date 97.05.17.14.12.24; author lukem; state Exp; branches; next 1.36; 1.36 date 97.05.15.02.09.27; author lukem; state Exp; branches; next 1.35; 1.35 date 97.05.12.23.40.50; author lukem; state Exp; branches; next 1.34; 1.34 date 97.05.12.11.26.10; author lukem; state Exp; branches; next 1.33; 1.33 date 97.04.29.04.55.05; author scottr; state Exp; branches; next 1.32; 1.32 date 97.04.01.19.36.19; author perry; state Exp; branches; next 1.31; 1.31 date 97.03.30.19.08.14; author veego; state Exp; branches; next 1.30; 1.30 date 97.03.10.09.42.24; author mycroft; state Exp; branches; next 1.29; 1.29 date 97.02.15.10.02.19; author mikel; state Exp; branches; next 1.28; 1.28 date 97.01.28.06.33.36; author mrg; state Exp; branches; next 1.27; 1.27 date 97.01.05.12.01.54; author mrg; state Exp; branches; next 1.26; 1.26 date 96.12.04.12.55.34; author mrg; state Exp; branches; next 1.25; 1.25 date 96.10.03.07.11.35; author mrg; state Exp; branches; next 1.24; 1.24 date 96.08.09.10.29.44; author thorpej; state Exp; branches; next 1.23; 1.23 date 95.12.30.01.30.03; author thorpej; state Exp; branches; next 1.22; 1.22 date 95.12.17.18.31.09; author perry; state Exp; branches; next 1.21; 1.21 date 95.10.08.18.11.40; author thorpej; state Exp; branches; next 1.20; 1.20 date 95.09.02.17.30.41; author thorpej; state Exp; branches; next 1.19; 1.19 date 94.09.16.23.38.04; author mycroft; state Exp; branches; next 1.18; 1.18 date 94.06.30.08.17.11; author cgd; state Exp; branches; next 1.17; 1.17 date 94.04.10.00.28.31; author cgd; state Exp; branches; next 1.16; 1.16 date 94.03.14.04.14.13; author cgd; state Exp; branches; next 1.15; 1.15 date 94.01.10.16.57.24; author mycroft; state Exp; branches; next 1.14; 1.14 date 94.01.10.16.43.06; author mycroft; state Exp; branches; next 1.13; 1.13 date 94.01.05.06.32.13; author deraadt; state Exp; branches; next 1.12; 1.12 date 93.12.16.04.02.23; author deraadt; state Exp; branches; next 1.11; 1.11 date 93.11.07.10.42.45; author cgd; state Exp; branches; next 1.10; 1.10 date 93.11.07.10.36.59; author cgd; state Exp; branches; next 1.9; 1.9 date 93.09.06.02.27.42; author mycroft; state Exp; branches; next 1.8; 1.8 date 93.06.11.00.39.31; author brezak; state Exp; branches; next 1.7; 1.7 date 93.04.10.20.15.30; author glass; state Exp; branches; next 1.6; 1.6 date 93.04.10.11.28.16; author cgd; state Exp; branches; next 1.5; 1.5 date 93.04.04.18.59.11; author cgd; state Exp; branches; next 1.4; 1.4 date 93.04.02.13.15.31; author deraadt; state Exp; branches; next 1.3; 1.3 date 93.04.02.13.11.42; author deraadt; state Exp; branches; next 1.2; 1.2 date 93.04.02.07.59.12; author cgd; state Exp; branches; next 1.1; 1.1 date 93.03.21.09.45.37; author cgd; state Exp; branches 1.1.1.1; next ; 1.62.4.1 date 99.12.27.18.28.49; author wrstuden; state Exp; branches; next ; 1.55.2.1 date 2000.01.31.19.34.37; author he; state Exp; branches; next ; 1.47.2.1 date 97.11.18.01.44.08; author mellon; state Exp; branches; next 1.47.2.2; 1.47.2.2 date 98.11.25.06.04.15; author cgd; state Exp; branches; next ; 1.1.1.1 date 93.03.21.09.45.37; author cgd; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 97.02.15.05.27.45; author mikel; state Exp; branches; next ; desc @@ 1.76 log @this should have been removed as part of the rc.d commit @ text @#!/bin/sh - # # $NetBSD: netstart,v 1.75 2000/05/03 07:04:22 itojun Exp $ # from: @@(#)netstart 8.1 (Berkeley) 7/23/93 if [ -f /etc/rc.subr ]; then . /etc/rc.subr else echo "Can't read /etc/rc.subr; aborting." exit 1; fi if [ -f /etc/rc.conf ]; then . /etc/rc.conf fi # If $hostname is set, use it for my Internet name, otherwise use /etc/myname if [ -z "$hostname" -a -f /etc/myname ]; then hostname=`cat /etc/myname` fi if [ -n "$hostname" ]; then echo "hostname: $hostname" hostname $hostname fi # Check $domainname first, then /etc/defaultdomain, for NIS/YP domain name if [ -z "$domainname" -a -f /etc/defaultdomain ]; then domainname=`cat /etc/defaultdomain` fi if [ -n "$domainname" ]; then echo "domainname: $domainname" domainname $domainname fi # Flush all routes just to make sure it is clean if checkyesno flushroutes; then route -n flush fi # Enable, flush and install packet filter rules before configuring interfaces. if checkyesno ipfilter; then if [ -f /etc/ipf.conf ]; then echo 'installing packet filter rules ... ' ipf -E -Fa -f /etc/ipf.conf else echo echo "WARNING: /etc/ipf.conf not readable " \ "ipfilter not started." # abort the boot rather than risk a security problem exit 1; fi fi # Set the address for the first loopback interface, so that the auto-route # from a newly configured interface's address to lo0 works correctly. # # NOTE: obscure networking problems may occur if lo0 isn't configured... # ifconfig lo0 inet 127.0.0.1 # Configure all of the network interfaces listed in $net_interfaces; # if $auto_ifconfig is YES, grab all interfaces from ifconfig. # In the following, "xxN" stands in for interface names, like "le0". # For any interfaces that has an $ifconfig_xxN variable associated, # we do "ifconfig xxN $ifconfig_xxN". # If there is no such variable, we take the contents of the file # /etc/ifconfig.xxN, and run "ifconfig xxN" repeatedly, using each # line of the file as the arguments for a seperate "ifconfig" invocation. # # In order to configure an interface reasonably, you at the very least # need to specify "[addr_family] [hostname]" (as in "inet my.domain.org"), # and probably a netmask (as in "netmask 0xffffffe0"). You will # frequently need to specify a media type, as in "media UTP", for # interface cards with multiple media connections that do not autoconfigure. # see the ifconfig manual page for details. # # Note that /etc/ifconfig.xxN takes multiple lines. The following # configuration is possible: # inet 10.1.1.1 netmask 0xffffff00 # inet 10.1.1.2 netmask 0xffffff00 alias # inet6 fec0::1 prefixlen 64 alias # if [ "$net_interfaces" != NO ]; then if checkyesno auto_ifconfig; then tmp="`ifconfig -l`" else tmp="$net_interfaces" fi echo -n 'configuring network interfaces:' for int in $tmp; do eval `echo 'args=$ifconfig_'$int` if [ -n "$args" ]; then echo -n " $int" ifconfig $int $args elif [ -f /etc/ifconfig.$int ]; then echo -n " $int" (while read args; do if [ -n "`eval echo '$args'`" ] ; then ifconfig $int $args fi done) < /etc/ifconfig.$int else if ! checkyesno auto_ifconfig; then echo echo "WARNING: /etc/ifconfig.$int missing " \ "and ifconfig_$int not set; " \ "interface $int not configured." fi continue fi configured_interfaces="$configured_interfaces $int" done echo '.' fi # Check $defaultroute, then /etc/mygate, for the name of my gateway host. # That name must be in /etc/hosts. if [ -z "$defaultroute" -a -f /etc/mygate ]; then defaultroute=`cat /etc/mygate` fi if [ -n "$defaultroute" ]; then route add default $defaultroute fi # Check if each configured interface xxN has an $ifaliases_xxN variable # associated, then configure additional IP addresses for that interface. # The variable contains a list of "address netmask" pairs, with "netmask" # set to "-" if the interface default netmask is to be used. # # Note that $ifaliases_xxN works only with certain configurations and # considered not recommended. Use /etc/ifconfig.xxN if possible. # if [ -n "$configured_interfaces" ]; then echo 'adding interface aliases:'; done_aliases_message=yes fi for int in $configured_interfaces; do eval `echo 'args=$ifaliases_'$int` if [ -n "$args" ]; then set -- $args while [ $# -ge 2 ]; do addr=$1 ; net=$2 ; shift 2 if [ "$net" = "-" ]; then ifconfig $int inet alias $addr else ifconfig $int inet alias $addr netmask $net fi # Use loopback, not the wire route add $addr 127.0.0.1 done fi done # /etc/ifaliases, if it exists, contains the names of additional IP # addresses for each interface. It is formatted as a series of lines # that contain # address interface netmask # # Note that /etc/ifaliases works only with certain cases only and considered # not recommended. Use /etc/ifconfig.xxN instead. # if [ -f /etc/ifaliases ]; then ( if [ "$done_aliases_message" != yes ]; then echo 'adding interface aliases:'; fi while read addr int net; do if [ -z "$net" ]; then ifconfig $int inet alias $addr else ifconfig $int inet alias $addr netmask $net fi # use loopback, not the wire route add $addr 127.0.0.1 done ) < /etc/ifaliases fi # /etc/ppp/peers and $ppp_peers contain boot configuration information # for pppd. each value in $ppp_peers that has a file in /etc/ppp/peers # of the same name, will be run as `pppd '. if [ -n "$ppp_peers" ]; then # pppd is in /usr - need to ensure it is mounted mount /usr >/dev/null 2>&1 set -- $ppp_peers echo -n "starting pppd:" while [ $# -ge 1 ]; do peer=$1; shift if [ -f /etc/ppp/peers/$peer ]; then pppd call $peer echo -n " $peer" fi done echo "." fi if checkyesno dhclient; then echo -n "starting dhcp client..."; dhclient $dhclient_flags fi # IPv6 # Note that manual configuration can be done in the above, using ifconfig. if ifconfig lo0 inet6 >/dev/null 2>&1; then # We have IPv6 support in kernel. # disallow link-local unicast dest without outgoing scope # identifiers. # route add -inet6 fe80:: -prefixlen 10 ::1 -reject # disallow site-local unicast dest without outgoing scope # identifiers. # If you configure site-locals without scope id (it is # permissible config for routers that are not on scope # boundary), you may want to comment the following one out. # route add -inet6 fec0:: -prefixlen 10 ::1 -reject # disallow "internal" addresses to appear on the wire. # route add -inet6 ::ffff:0.0.0.0 -prefixlen 96 ::1 -reject # disallow packets to malicious IPv4 compatible prefix # route add -inet6 ::224.0.0.0 -prefixlen 100 ::1 -reject route add -inet6 ::127.0.0.0 -prefixlen 104 ::1 -reject route add -inet6 ::0.0.0.0 -prefixlen 104 ::1 -reject route add -inet6 ::255.0.0.0 -prefixlen 104 ::1 -reject # disallow packets to malicious 6to4 prefix # route add -inet6 2002:e000:: -prefixlen 20 ::1 -reject route add -inet6 2002:7f00:: -prefixlen 24 ::1 -reject route add -inet6 2002:0000:: -prefixlen 24 ::1 -reject route add -inet6 2002:ff00:: -prefixlen 24 ::1 -reject # Completely disallow packets to IPv4 compatible prefix. # This may conflict with RFC1933 under following circumstances: # (1) An IPv6-only KAME node tries to originate packets to IPv4 # comatible destination. The KAME node has no IPv4 # compatible support. Under RFC1933, it should transmit # native IPv6 packets toward IPv4 compatible destination, # hoping it would reach a router that forwards the packet # toward auto-tunnel interface. # (2) An IPv6-only node originates a packet to IPv4 compatible # destination. A KAME node is acting as an IPv6 router, and # asked to forward it. # Due to rare use of IPv4 compatible address, and security # issues with it, we disable it by default. # route add -inet6 ::0.0.0.0 -prefixlen 96 ::1 -reject sysctl -w net.inet6.ip6.forwarding=0 >/dev/null sysctl -w net.inet6.ip6.accept_rtadv=0 >/dev/null # backward compatibility if test "x$ip6mode" = "x" -a "x$ip6forwarding" != "x"; then echo 'WARNING: please migrate to newer rc.conf' \ '(use ip6mode, not ip6forwarding)' if checkyesno ip6forwarding; then ip6mode=router else if checkyesno rtsol; then ip6mode=autohost else ip6mode=host fi fi fi case $ip6mode in router) echo 'IPv6 mode: router' sysctl -w net.inet6.ip6.forwarding=1 >/dev/null ;; autohost) echo 'IPv6 mode: autoconfigured host' sysctl -w net.inet6.ip6.accept_rtadv=1 >/dev/null if test "x$ip6defaultif" != "x"; then ndp -I $ip6defaultif fi ;; host) echo 'IPv6 mode: host' if test "x$ip6defaultif" != "x"; then ndp -I $ip6defaultif fi ;; *) echo 'WARNING: invalid value in ip6mode' ;; esac if checkyesno rtsol; then if test "x$ip6mode" = "xautohost"; then echo 'Sending router solicitation...' rtsol $rtsol_flags else echo logger -s "WARNING: ip6mode must be set to autohost" \ "to use rtsol." fi fi # wait till DAD is completed. # always invoke it in case if are configured manually by ifconfig dadcount=`sysctl -n net.inet6.ip6.dad_count 2>/dev/null` sleep $dadcount sleep 1 fi if [ -s /etc/netstart.local ]; then . /etc/netstart.local fi @ 1.75 log @sync with rc.d/network, about IPv6 prefix filters (since we still ship it, we need to make it up-to-date) @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.74 2000/02/13 07:47:26 itojun Exp $ @ 1.74 log @add ip6defaultif configuration variable in rc.conf, for configuring default outgoing interface for IPv6 host when default router list is empty. the configuration is just for very rare case. it is safe to leave it empty. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.73 2000/02/11 08:09:56 itojun Exp $ d207 3 a209 1 # disallow scoped unicast dest without outgoing scope identifiers. d211 8 a218 1 route add -inet6 fc80:: -prefixlen 10 ::1 -reject d221 1 d223 29 @ 1.73 log @improve comments about /etc/ifconfig.xxN, /etc/ifaliases, $ifaliases_xxN. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.72 2000/02/09 16:24:03 itojun Exp $ d240 3 d245 3 @ 1.72 log @ip6forwarding -> ip6mode change (somehow i forgot to commit...) PR: 9375 @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.71 2000/02/05 17:52:06 itojun Exp $ d76 7 a82 1 d130 2 a131 2 # Note that $ifaliases_xxN works only with IPv4 addresses and considered # not recommended. See below (/etc/ifaliases section) for alternative. d159 2 a160 6 # Note that /etc/ifaliases works only with IPv4 addresses and considered # not recommended. Recommend using /etc/ifconfig.xxN like below instead # (/etc/ifconfig.xxN allows multiple lines): # inet 10.1.1.1 netmask 0xffffff00 # inet 10.1.1.2 netmask 0xffffff00 alias # inet6 fec0::1 prefixlen 64 alias @ 1.71 log @remove (slightly) bogus comment line about IPv6 config. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.70 2000/02/05 17:02:42 itojun Exp $ a260 5 else # We do not have IPv6 support in kernel. if checkyesno ip6forwarding || checkyesno rtsol; then echo "WARNING: ip6 requested without kernel IPv6 config" fi @ 1.70 log @change IPv6 configuration syntax to avoid ambiguity. ip6mode=host: IPv6 host ip6mode=autohost: IPv6 host, with autoconfig ip6mode=router: IPv6 router backward compatibility to "ip6forwading" is provided. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.69 2000/01/26 07:01:53 explorer Exp $ a209 1 # you may want to enable them for experiments. @ 1.69 log @use 'route -n flush' not 'route flush' otherwise we might spend all our time trying to print hostnames for things we are just flushing anyway. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.68 2000/01/17 02:37:59 itojun Exp $ d214 9 a222 5 sysctl -w net.inet6.ip6.forwarding=0 sysctl -w net.inet6.ip6.accept_rtadv=0 if checkyesno ip6forwarding; then if checkyesno rtsol; then echo "WARNING: rtsol cannot be used on IPv6 router." d224 5 a228 1 sysctl -w net.inet6.ip6.forwarding=1 d230 19 a248 4 else if checkyesno rtsol; then echo -n "sending IPv6 router solicitation..."; sysctl -w net.inet6.ip6.accept_rtadv=1 d250 4 @ 1.68 log @no need to mount /usr just for sysctl, it is in /sbin now. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.67 1999/12/20 15:51:14 itojun Exp $ d37 1 a37 1 route flush @ 1.67 log @flip "if" order in IPv6 initialization, avoid calling /bin/test. From: soda @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.66 1999/12/20 15:12:23 itojun Exp $ a212 3 # sysctl is in /usr - need to ensure it is mounted mount /usr >/dev/null 2>&1 @ 1.66 log @check for IPv6 kernel by exit status of "ifconfig lo0 inet6". now IPv6 portion of netstart does not require /usr mount, it will mount it as necessary (like pppd configuration do). thanks goes to christos for the tip. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.65 1999/12/09 14:18:07 itojun Exp $ d202 1 a202 7 ifconfig lo0 inet6 >/dev/null 2>&1 if [ $? -ne 0 ]; then # We do not have IPv6 support in kernel. if checkyesno ip6forwarding || checkyesno rtsol; then echo "WARNING: ip6 requested without kernel IPv6 config" fi else d238 5 @ 1.65 log @avoid transmitting invalid IPv6 packets out to the wire. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.64 1999/11/29 01:40:33 itojun Exp $ d202 6 a207 3 dadcount=`sysctl -n net.inet6.ip6.dad_count 2>/dev/null` if [ "x$dadcount" = "x" ]; then # IPv6 is not configured in the kernel. do not bother. d209 2 d220 3 d238 1 d240 2 a241 1 # outside of the loop in case ifconfig is used @ 1.64 log @recommend use of multi-line /etc/ifconfig.xxN than /etc/ifaliases, or $ifaliases_xxN in /etc/rc.conf. (no behavior change in /etc/netstart, comments only) see recent tech-userlevel for discussions. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.63 1999/11/08 09:29:24 erh Exp $ d206 9 @ 1.63 log @Ignore blank lines in ifconfig.* files. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.62 1999/09/06 18:52:33 itojun Exp $ d123 3 d152 8 @ 1.62 log @use sysctl -n to get numeric result, not awk. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.61 1999/09/03 13:40:15 itojun Exp $ d92 3 a94 1 ifconfig $int $args @ 1.62.4.1 log @Pull up to last week's -current. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.67 1999/12/20 15:51:14 itojun Exp $ d92 1 a92 3 if [ -n "`eval echo '$args'`" ] ; then ifconfig $int $args fi a120 3 # # Note that $ifaliases_xxN works only with IPv4 addresses and considered # not recommended. See below (/etc/ifaliases section) for alternative. a146 8 # # Note that /etc/ifaliases works only with IPv4 addresses and considered # not recommended. Recommend using /etc/ifconfig.xxN like below instead # (/etc/ifconfig.xxN allows multiple lines): # inet 10.1.1.1 netmask 0xffffff00 # inet 10.1.1.2 netmask 0xffffff00 alias # inet6 fec0::1 prefixlen 64 alias # d189 4 a192 15 if ifconfig lo0 inet6 >/dev/null 2>&1; then # We have IPv6 support in kernel. # disallow scoped unicast dest without outgoing scope identifiers. route add -inet6 fe80:: -prefixlen 10 ::1 -reject route add -inet6 fc80:: -prefixlen 10 ::1 -reject # disallow "internal" addresses to appear on the wire. # you may want to enable them for experiments. route add -inet6 ::ffff:0.0.0.0 -prefixlen 96 ::1 -reject route add -inet6 ::0.0.0.0 -prefixlen 96 ::1 -reject # sysctl is in /usr - need to ensure it is mounted mount /usr >/dev/null 2>&1 a207 1 d209 1 a209 2 # always invoke it in case if are configured manually by ifconfig dadcount=`sysctl -n net.inet6.ip6.dad_count 2>/dev/null` a211 5 else # We do not have IPv6 support in kernel. if checkyesno ip6forwarding || checkyesno rtsol; then echo "WARNING: ip6 requested without kernel IPv6 config" fi @ 1.61 log @add sanity check on rtadvd invocation (allowed on IPv6 routers only). add rc.conf entry for rtsold. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.60 1999/07/04 12:51:30 itojun Exp $ d189 1 a189 1 dadcount=`sysctl net.inet6.ip6.dad_count 2>/dev/null | awk '{print $NF}'` @ 1.60 log @hide sysctl error messages to stderr (on checking IPv6 config values) @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.59 1999/07/04 05:20:52 itojun Exp $ d197 1 a197 2 echo "WARNING: ip6forwarding and rtsol " \ "cannot be used together." @ 1.59 log @remove echo statement (was mostly for debugging). @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.58 1999/07/03 03:40:52 itojun Exp $ d189 1 a189 1 dadcount=`sysctl net.inet6.ip6.dad_count | awk '{print $NF}'` @ 1.58 log @remove unnecessary sleep (for DAD wait) in IPv6 configuration. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.57 1999/07/03 03:29:29 itojun Exp $ a194 1 echo dadcount is $dadcount @ 1.57 log @add IPv6 configuration (ip6forwarding, rtsol, route6d and rtadvd). Right now netsetart does not bother you even if you do not have "options INET6" in the kernel. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.56 1999/05/28 21:01:42 christos Exp $ a205 6 ifconfig $rtsol_flags up # wait till DAD is completed sleep $dadcount sleep 1 @ 1.56 log @Correct the dhclient startup to follow the standard indentation style @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.55 1999/03/24 19:03:10 mellon Exp $ d185 35 @ 1.55 log @- Support dhclient and dhclient_flags rc.conf variables. - Start dhcp client if dhclient==YES. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.54 1999/03/02 23:10:17 abs Exp $ d183 2 a184 2 echo -n "starting dhcp client..."; dhclient $dhclient_flags @ 1.55.2.1 log @Pull up revision 1.69 (requested by explorer): Use 'route -n flush' instead of 'route flush' to avoid delay caused by name lookups for entries we throw away. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.55 1999/03/24 19:03:10 mellon Exp $ d37 1 a37 1 route -n flush @ 1.54 log @If ppp_peers is set, ensure /usr is mounted since pppd is in /usr. (Modeled on rc.lkm setup) @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.53 1998/11/25 03:54:27 abs Exp $ d180 5 @ 1.53 log @Cannot use 'logger' as /usr is normally not mounted here. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.52 1998/05/11 18:59:23 fair Exp $ d168 2 @ 1.52 log @more clearly document that "domainname" is about NIS/YP, not Internet, per PR#5442 @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.51 1998/01/26 12:02:47 lukem Exp $ d46 2 a47 1 logger -s "WARNING: /etc/ipf.conf not readable " \ @ 1.51 log @include rc.subr and use appropriately @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.50 1998/01/24 19:12:54 veego Exp $ d17 1 a17 1 # If $hostname is set, use it for my symbolic name, otherwise use /etc/myname d26 1 a26 1 # Check $domainname first, then /etc/defaultdomain, for domain name @ 1.50 log @Move ipnat from /etc/netstart to /etc/rc after /usr is mounted. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.49 1997/12/20 20:11:55 christos Exp $ d36 1 a36 1 if [ "$flushroutes" = YES ]; then d94 1 a94 1 if [ "$auto_ifconfig" != YES ]; then @ 1.49 log @PR/3638: David Brownlee: Add /etc/ipnat.conf functionality. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.48 1997/11/17 17:45:28 mrg Exp $ a160 9 fi # Network Address Translation... if [ "$ipnat" != NO ] && [ -f /etc/ipnat.conf ]; then echo 'installing NAT rules ... ' if [ "$ipfilter" = NO ] || [ ! -f /etc/ipf.conf ]; then ipf -E -Fa fi ipnat -F -f /etc/ipnat.conf @ 1.48 log @- remove additional `adding interface aliases:' message. - add `ppp_peers' support, which will run `pppd call ' for each peer listed in the ppp_peers file that also has a /etc/ppp/peers/ configuration file. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.47 1997/09/26 07:44:07 lukem Exp $ d161 9 @ 1.47 log @highlight that a configured lo0 is necessary for sane network operation @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.46 1997/09/08 02:43:26 mikel Exp $ d123 1 a146 1 echo 'adding interface aliases:'; d148 3 d161 16 @ 1.47.2.1 log @Pull rev 1.48 up from trunk (mrg) @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.48 1997/11/17 17:45:28 mrg Exp $ a122 1 done_aliases_message=yes d146 1 a147 3 if [ "$done_aliases_message" != yes ]; then echo 'adding interface aliases:'; fi a157 16 fi # /etc/ppp/peers and $ppp_peers contain boot configuration information # for pppd. each value in $ppp_peers that has a file in /etc/ppp/peers # of the same name, will be run as `pppd '. if [ -n "$ppp_peers" ]; then set -- $ppp_peers echo -n "starting pppd:" while [ $# -ge 1 ]; do peer=$1; shift if [ -f /etc/ppp/peers/$peer ]; then pppd call $peer echo -n " $peer" fi done echo "." @ 1.47.2.2 log @pull up rev 1.53 from trunk (abs) @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.47.2.1 1997/11/18 01:44:08 mellon Exp $ d46 1 a46 2 echo echo "WARNING: /etc/ipf.conf not readable " \ @ 1.46 log @update $net_interfaces comment to reference $auto_ifconfig @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.45 1997/09/07 09:47:31 mycroft Exp $ d55 3 @ 1.45 log @Hard-code the loopback address; it never changes, and we do *not* want to be doing name lookups here (by default, at least). @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.44 1997/08/29 10:09:38 veego Exp $ d58 1 a58 1 # if $net_interfaces is DEFAULT, grab all interfaces from ifconfig. @ 1.44 log @s/rc.func/rc.subr/ @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.43 1997/08/29 02:24:04 cjs Exp $ d55 1 a55 1 ifconfig lo0 inet localhost d133 1 a133 1 route add $addr localhost d152 1 a152 1 route add $addr localhost @ 1.43 log @Split rc.conf variables for starting programs into two: an on/off switch and a set of flags. Get rid of DEFAULT flags entirely. Print warnings if on/off switches are not set, or are set incorrectly. Add a shell function to simplify this on/off switch testing. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.42 1997/08/28 18:18:17 mycroft Exp $ d6 2 a7 2 if [ -f /etc/rc.func ]; then . /etc/rc.func d9 1 a9 1 echo "Can't read /etc/rc.func; aborting." @ 1.42 log @Don't require the host name to be set here. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.41 1997/08/04 06:09:49 lukem Exp $ d6 7 d41 10 a50 3 if [ "$ipfilter" != NO ] && [ -f /etc/ipf.conf ]; then echo 'installing packet filter rules ... ' ipf -E -Fa -f /etc/ipf.conf d74 1 a74 1 if [ "$net_interfaces" = DEFAULT ]; then d91 1 a91 1 if [ "$net_interfaces" != DEFAULT ]; then d93 3 a95 3 echo -n "/etc/ifconfig.$int missing" echo -n "& ifconfig_$int not set" echo "; interface $int can't be configured" @ 1.41 log @4.4BSD has the ability to automagially add a route to localhost from an interface to first time its address is referenced. Therefore: * configure lo0 before all other interfaces (rather than afterwards). * don't explicitly add a route from `hostname` to localhost @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.40 1997/07/22 18:41:08 phil Exp $ d11 1 a11 1 if [ -z "$hostname" ]; then d14 4 a17 2 echo "hostname: $hostname" hostname $hostname @ 1.40 log @Allow routes to be flushed in netstart (rc.conf option, default YES). PR 3228. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.39 1997/05/22 21:41:09 cjs Exp $ d37 4 a82 3 if [ "$int" = "lo0" ]; then configured_lo0=yes fi a86 8 # Set the address for the loopback interface if it's not configured if [ "$configured_lo0" != "yes" ]; then ifconfig lo0 inet localhost fi # Use loopback, not the wire route add $hostname localhost @ 1.39 log @Back out last commit; bug was fixed in 1.37, but differently. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.37 1997/05/17 14:12:24 lukem Exp $ d24 5 @ 1.38 log @The interface setup loop was adding every interface in `ifconfig -l` to $configured_interfaces because it never checked to see if if it actually configured that interface. For this reason it was setting $configured_lo0 as well, so that never got configured, causing all sorts of problems. @ text @a55 1 didconfig="" a59 1 didconfig=yes a64 1 didconfig=yes d74 2 a75 5 if [ -s "$didconfig" ]; then if [ "$int" = "lo0" ]; then configured_lo0=yes fi configured_interfaces="$configured_interfaces $int" d77 1 @ 1.37 log @Change interface config test so that the loop is always continued if the interface wasn't configured, so that $configured_lo0 and $configured_interfaces won't get incorrectly set if $net_interfaces == DEFAULT. From enami tsugutomo in [misc/3635] @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.36 1997/05/15 02:09:27 lukem Exp $ d56 1 d61 1 d67 1 d77 5 a81 2 if [ "$int" = "lo0" ]; then configured_lo0=yes a82 1 configured_interfaces="$configured_interfaces $int" @ 1.36 log @wrap $configured_lo0 in quotes, so that it doesn't barf if it's not set. noticed by Thorsten Frueauf in [misc/3620] @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.35 1997/05/12 23:40:50 lukem Exp $ d65 7 a71 5 elif [ "$net_interfaces" != DEFAULT ]; then echo echo -n "/etc/ifconfig.$int missing" echo -n "& ifconfig_$int not set" echo "; interface $int can't be configured" @ 1.35 log @fix up minor typos in comments @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.34 1997/05/12 11:26:10 lukem Exp $ d81 1 a81 1 if [ $configured_lo0 != "yes" ]; then @ 1.34 log @* add support for $hostname, $domainname, $defaultroute and $ifaliases_XXX * only configure lo0 if not configured by the "configure interface" loop @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.33 1997/04/29 04:55:05 scottr Exp $ d26 1 a26 1 # enable, flush and install packet filter rules before configuring interfaces. d80 1 a80 1 # set the address for the loopback interface if it's not configured d85 1 a85 1 # use loopback, not the wire d116 1 a116 1 # use loopback, not the wire @ 1.33 log @Source rc.conf to pick up network-related configuration variables. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.32 1997/04/01 19:36:19 perry Exp $ d10 5 a14 3 # /etc/myname contains my symbolic name # hostname=`cat /etc/myname` d16 8 a23 2 if [ -f /etc/defaultdomain ]; then domainname `cat /etc/defaultdomain` d54 8 a61 8 echo -n "configuring network interfaces:" for i in $tmp; do eval `echo 'args=$ifconfig_'$i` if [ ! -z "$args" ]; then echo -n " $i" ifconfig $i $args elif [ -f /etc/ifconfig.$i ]; then echo -n " $i" d63 2 a64 2 ifconfig $i $args done) < /etc/ifconfig.$i d67 7 a73 3 echo -n "/etc/ifconfig.$i missing" echo -n "& ifconfig_$i not set" echo "; interface $i can't be configured" d75 1 d77 1 a77 1 echo "." d80 4 a83 3 # set the address for the loopback interface ifconfig lo0 inet localhost d88 7 a94 4 # /etc/mygate, if it exists, contains the name of my gateway host # that name must be in /etc/hosts. if [ -f /etc/mygate ]; then route add default `cat /etc/mygate` d97 25 d127 1 d130 1 a130 1 if [ ! -n "$net" ]; then d135 1 @ 1.32 log @Change the way interfaces are configured on startup. We no longer do /etc/hostname.* files, we do /etc/ifconfig.* files instead, which contain lines each of which is fed to ifconfig in turn. A new variable, net_interfaces, controls which interfaces get brought up, by default, ifconfig -l is used to find a list. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.31 1997/03/30 19:08:14 veego Exp $ d5 4 @ 1.31 log @Flush old filter rules and enable ipf again after the fix for src/sys/netinet/ip_fil.c revision1.7 @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.30 1997/03/10 09:42:24 mycroft Exp $ d20 42 a61 48 # configure all of the interfaces which we know about. # do this by reading /etc/hostname.* files, where * is the name # of a given interface. # # these files are formatted like the following, but with no # at the # beginning of the line # # addr_family hostname netmask broadcast_addr options # dest dest_addr # # addr_family is the address family of the interface, generally inet # hostname is the host name that belongs to the interface, in /etc/hosts. # netmask is the network mask for the interface. # broadcast_addr is the broadcast address for the interface # options are misc. options to ifconfig for the interface. # # dest is simply the string "dest" (no quotes, though) if the interface # has a "destination" (i.e. it's a point-to-point link, like SLIP). # dest_addr is the hostname of the other end of the link, in /etc/hosts # # the only required contents of the file are the addr_family field # and the hostname. ( tmp="$IFS" IFS="$IFS." set -- `echo /etc/hostname*` IFS=$tmp unset tmp while [ $# -ge 2 ] ; do shift # get rid of "hostname" ( read af name mask bcaddr extras read dt dtaddr if [ ! -n "$name" ]; then echo "/etc/hostname.$1: invalid network configuration file" exit fi cmd="ifconfig $1 $af $name " if [ "$dt" = dest ]; then cmd="$cmd $dtaddr"; fi if [ -n "$mask" ]; then cmd="$cmd netmask $mask"; fi if [ -n "$bcaddr" ] && [ "$bcaddr" != NONE ]; then cmd="$cmd broadcast $bcaddr"; fi cmd="$cmd $extras" a62 5 $cmd ) < /etc/hostname.$1 shift done ) @ 1.30 log @Minor cleanup. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.29 1997/02/15 10:02:19 mikel Exp $ d14 1 a14 1 # install and enable packet filter rules before configuring interfaces. d17 1 a17 1 ipf -f /etc/ipf.conf @ 1.29 log @cleanup Lite-1 merge @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.28 1997/01/28 06:33:36 mrg Exp $ d15 1 a15 1 if [ "X$ipfilter" != XNO -a -f /etc/ipf.conf ]; then d62 1 a62 1 if [ "${dt}" = "dest" ]; then cmd="$cmd $dtaddr"; fi d64 1 a64 1 if [ -n "$bcaddr" -a "X$bcaddr" != "XNONE" ]; then d94 1 a94 1 if [ x"$net" = x ]; then @ 1.28 log @don't need -E to ipf. @ text @d3 2 a4 2 # $NetBSD: netstart,v 1.27 1997/01/05 12:01:54 mrg Exp $ # @@(#)netstart 5.9 (Berkeley) 3/30/91 @ 1.27 log @move start-time configuration from netstart, rc, rc.local into the new /etc/rc.conf. this also includes the following changes: netstart: ifaliases now includes a netmask, to ensure aliases work. rc/rc.local: make _everything_ based on configuration in rc.conf. also move things around such that DNS and YP are started early enough that other daemons needing their services also exist. move ldconfig from rc.local here, and also make it use /etc/ld.so.conf if it exists. run /etc/rc.lkm if it exists, a boot time. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.26 1996/12/04 12:55:34 mrg Exp $ d17 1 a17 1 ipf -f /etc/ipf.conf -E @ 1.26 log @add inetd_flags, mostly from in pr#2987 @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.25 1996/10/03 07:11:35 mrg Exp $ a5 37 # set these to "NO" to turn them off. otherwise, they're used as flags routed_flags=-q mrouted_flags=NO # for 'normal' use: mrouted_flags="" rarpd_flags=NO # for 'normal' use: rarpd_flags="-a" bootparamd_flags=NO # for 'normal' use: bootparamd_flags="" rbootd_flags=NO # for 'normal' use: rbootd_flags="" sendmail_flags=NO # for 'normal' use: sendmail_flags="-bd -q30m" named_flags=NO # for 'normal' use: named_flags="" dhcpd_flags=NO # for 'normal' use: dhcpd_flags="" timed_flags= inetd_flags= # for libwrap logging, use: inetd_flags=-l # If your system is to be a YP server, you need to enable ypserv # and (optionally) rpc.yppasswdd. Set these variables to "NO" # to turn them off, otherwise they're used as flags. ypserv_flags=NO # for 'normal' use: ypserv_flags="-d" yppasswdd_flags=NO # for 'normal' use: yppasswdd_flags="" # If your system is to be a YP client, you need to enable ypbind. # Set these variables to "NO" to turn them off, otherwise they're # used as flags. ypbind_flags=NO # for 'normal' use: ypbind_flags="" # set the following to "YES" to turn them on rwhod=NO nfs_server=NO nfs_client=NO gated=NO kerberos_server=NO amd=NO # miscellaneous other flags # only used if the appropriate server is marked YES above gated_flags= amd_dir=/amd # AMD's mount directory amd_master=/etc/amd/master # AMD 'master' map d14 6 d90 1 a90 1 # address interface d93 10 a102 1 set -- `cat /etc/ifaliases` d104 2 a105 6 while [ $# -ge 2 ] ; do ifconfig $2 inet alias $1 route add $1 localhost shift 2 done ) @ 1.25 log @add dhcpd startup; disabled by default @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.24 1996/08/09 10:29:44 thorpej Exp $ d16 1 @ 1.24 log @Change how the YP daemons are started. Previously, ypbind was always started if the directory /var/yp exists. Now, ypbind, ypserv, and rpc.yppasswdd are started like other daemons; there are flags variables for these programs. To disable them, set the variables to "NO", otherwise, their contents are passed as flags. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.23 1995/12/30 01:30:03 thorpej Exp $ d14 1 @ 1.23 log @Add $mrouted_flags to netstart and use it in rc to start mrouted in a manner similar (well, identical, really) to how $routed_flags is used to start routed. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.22 1995/12/17 18:31:09 perry Exp $ d15 11 @ 1.22 log @Closed out my own PR 1365 -- this change adds support in /etc/netstart for an /etc/ifaliases file that contains lists of additional IP addresses to be configured on each interface. @ text @d3 1 a3 1 # $NetBSD: netstart,v 1.21 1995/10/08 18:11:40 thorpej Exp $ d8 1 @ 1.21 log @New-style RCS ids. @ text @d3 1 a3 1 # $NetBSD: $ d102 16 @ 1.20 log @Conditionally start rbootd like rarpd and rpc.bootparamd, and disable it by default. @ text @d3 1 a4 1 # $Id: netstart,v 1.19 1994/09/16 23:38:04 mycroft Exp $ @ 1.19 log @Create an empty mountdtab after removing it, to avoid getting a warning from mountd on startup. Change $name_server to $named_flags. @ text @d4 1 a4 1 # $Id: netstart,v 1.18 1994/06/30 08:17:11 cgd Exp $ d10 1 @ 1.18 log @buy back Bill Sommerfeld's hack to allow netstart to run ifconfig with extra args, but w/o broadcast arg. @ text @d4 1 a4 1 # $Id: netstart,v 1.17 1994/04/10 00:28:31 cgd Exp $ d11 1 a17 1 name_server=NO @ 1.17 log @fix from Bob Kemp for when there are no enet addrs @ text @d4 1 a4 1 # $Id: netstart,v 1.16 1994/03/14 04:14:13 cgd Exp $ d80 3 a82 1 if [ -n "$bcaddr" ]; then cmd="$cmd broadcast $bcaddr"; fi @ 1.16 log @slight change to the way AMD is invoked, to make it sensible for most uses @ text @d4 1 a4 1 # $Id: netstart,v 1.15 1994/01/10 16:57:24 mycroft Exp $ d62 1 a62 1 set -- `echo /etc/hostname.*` @ 1.15 log @Add bootparamd gunk. @ text @d4 1 a4 1 # $Id: netstart,v 1.14 1994/01/10 16:43:06 mycroft Exp $ d23 1 a23 1 # gated_flags only used if gated == YES d25 2 @ 1.14 log @Add rarpd gunk. @ text @d4 1 a4 1 # $Id: netstart,v 1.13 1994/01/05 06:32:13 deraadt Exp $ d9 1 @ 1.13 log @amd is not enabled by default @ text @d4 1 a4 1 # $Id: netstart,v 1.12 1993/12/16 04:02:23 deraadt Exp $ d8 1 @ 1.12 log @initialize rpc services in proper order @ text @d4 1 a4 1 # $Id: $ d18 1 @ 1.11 log @disable sendmail in distribution; better to do nothing in this case than possibly do something *really*, *really* wrong. @ text @d4 1 a93 4 fi if [ -f /usr/sbin/ypbind -a -d /var/yp ]; then ypbind; echo ypbind @ 1.10 log @(1) clean up lots (rename fooflags -> foo_flags, etc.) (2) implement suggestion made by Garrett Wollman of "sendmail flags" to set flags passed to sendmail and/or turn it off (3) document origins of variables @ text @d7 1 a7 1 sendmail_flags="-bd -q30m" @ 1.9 log @Use `set --' when looking for `hostname.*' files, so we don't lose if none are present. @ text @d6 3 a8 2 routedflags=-q timedflags= d17 4 @ 1.8 log @Don't start rwalld - now started by inetd. @ text @d51 1 a51 1 set `echo /etc/hostname.*` @ 1.7 log @fixes for nfs_client, nfs_server division. @ text @a10 1 rwalld=YES @ 1.6 log @make rwalld default to on... @ text @d13 1 @ 1.5 log @updated for addition of rwalld @ text @d11 1 a11 1 rwalld=NO @ 1.4 log @learn to type theo.. spelling error, whoops @ text @d11 1 @ 1.3 log @automagically set the domainname using /etc/defaultdomainname, an start ypbind if it exists and should be running. (future's so bright, gotta wear shades..) @ text @d20 1 a20 1 if [ -f /etc/defaultdomaie ]; then d89 1 a89 1 if [ -d /var/yp -a -f /usr/sbin/ypbind ]; then @ 1.2 log @added better interface configuration, comments, and support for better hostname and gateway configuration. @ text @d20 3 d88 4 @ 1.1 log @Initial revision @ text @d5 1 d7 3 a9 1 timedflags=YES d11 4 d16 1 a16 2 # myname is my symbolic name # my-netmask is specified in /etc/networks d18 1 a18 1 hostname=myname.my.domain d21 40 a60 9 ifconfig imp0 inet $hostname ifconfig ace0 inet $hostname netmask my-netmask ifconfig ex0 inet $hostname netmask my-netmask ifconfig we0 inet $hostname netmask my-netmask ifconfig ne0 inet $hostname netmask my-netmask # for en ethernet interface, load microcode before ifconfig # /etc/enpload /dev/enp0ram /etc/enpcode > /dev/console 2>&1 ifconfig en0 inet $hostname netmask my-netmask d62 12 d79 6 @ 1.1.1.1 log @initial import of 386bsd-0.1 sources @ text @@ 1.1.1.2 log @import 4.4BSD-Lite @ text @d3 1 a3 1 # @@(#)netstart 8.1 (Berkeley) 7/23/93 d15 1 d17 3 a19 5 ifconfig ex0 inet $hostname netmask my-netmask ifconfig imp0 inet $hostname ifconfig le0 inet $hostname netmask my-netmask ifconfig ne0 inet $hostname netmask my-netmask ifconfig we0 inet $hostname netmask my-netmask d21 1 a21 1 # For en ethernet interface, load microcode before ifconfig @