diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-02-28 17:28:36 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-02-28 17:28:36 +0000 |
commit | 5aaf3e22ade5a4d606293299cdf69b35d3c06437 (patch) | |
tree | d6dfde5921e42adc7e8eaf78fe56c44f08299c20 | |
parent | c28e284c43f59c5cf0db1b71e5fc1aaed3df8c0d (diff) |
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/rc | 6 | ||||
-rw-r--r-- | etc/rc.conf | 3 |
2 files changed, 7 insertions, 2 deletions
@@ -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: "" |