summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2000-02-28 17:28:35 +0000
committeritojun <itojun@openbsd.org>2000-02-28 17:28:35 +0000
commit0e8e3913b885008f9968df205402c27bd8c891f7 (patch)
treea75eef468a9a79f7c3d978ed93b56ce92b83323d
parentUse a base of 0 when calling stroul() as per the man page; gagnocg@ev1.net (diff)
downloadwireguard-openbsd-0e8e3913b885008f9968df205402c27bd8c891f7.tar.xz
wireguard-openbsd-0e8e3913b885008f9968df205402c27bd8c891f7.zip
add ip6defaultif, which configures default outgoing interface
when no neighboring router is found (rare case). this is to conform strictly to the ND spec. it is safe to leave it empty.
-rw-r--r--etc/rc6
-rw-r--r--etc/rc.conf3
2 files changed, 7 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index 016991bb324..2f894fe4e70 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.129 2000/01/30 02:45:51 millert Exp $
+# $OpenBSD: rc,v 1.130 2000/02/28 17:28:35 itojun Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -400,6 +400,10 @@ if ifconfig lo0 inet6 >/dev/null 2>&1; then
echo -n ' rtsold'
/usr/sbin/rtsold ${rtsold_flags}
fi
+
+ if [ "X${ip6defaultif}" != X"" ]; then
+ /usr/sbin/ndp -I ${ip6defaultif}
+ fi
else
# $route6d_flags is imported from /etc/rc.conf;
# If $route6d_flags == NO, then route6d isn't run.
diff --git a/etc/rc.conf b/etc/rc.conf
index 0aa7e694e65..5310ecec3a8 100644
--- a/etc/rc.conf
+++ b/etc/rc.conf
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: rc.conf,v 1.43 2000/02/19 14:36:02 deraadt Exp $
+# $OpenBSD: rc.conf,v 1.44 2000/02/28 17:28:35 itojun Exp $
# set these to "NO" to turn them off. otherwise, they're used as flags
routed_flags=NO # for normal use: "-q"
@@ -19,6 +19,7 @@ mopd_flags=NO # for normal use: "-a"
httpd_flags=NO # for normal use: "" (or "-DSSL" after reading ssl(8))
apmd_flags=NO # for normal use: ""
dhcpd_flags=NO # for normal use: "-q"
+ip6defaultif="" # for normal use: ""
rtadvd_flags=NO # for normal use: list of interfaces
# be sure to set net.inet6.ip6.forwarding=1
route6d_flags=NO # for normal use: ""