summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2001-06-11 12:39:29 +0000
committerume <ume@FreeBSD.org>2001-06-11 12:39:29 +0000
commit832f8d224926758a9ae0b23a6b45353e44fbc87a (patch)
treea79fc7ad2b97862c4a404f352f0211ad93a7b5f1 /etc
parent2693854b01a52b0395a91322aa3edf926bddff38 (diff)
downloadFreeBSD-src-832f8d224926758a9ae0b23a6b45353e44fbc87a.zip
FreeBSD-src-832f8d224926758a9ae0b23a6b45353e44fbc87a.tar.gz
Sync with recent KAME.
This work was based on kame-20010528-freebsd43-snap.tgz and some critical problem after the snap was out were fixed. There are many many changes since last KAME merge. TODO: - The definitions of SADB_* in sys/net/pfkeyv2.h are still different from RFC2407/IANA assignment because of binary compatibility issue. It should be fixed under 5-CURRENT. - ip6po_m member of struct ip6_pktopts is no longer used. But, it is still there because of binary compatibility issue. It should be removed under 5-CURRENT. Reviewed by: itojun Obtained from: KAME MFC after: 3 weeks
Diffstat (limited to 'etc')
-rw-r--r--etc/network.subr2
-rw-r--r--etc/rc.d/netoptions2
-rw-r--r--etc/rc.d/network12
-rw-r--r--etc/rc.d/network22
-rw-r--r--etc/rc.d/network32
-rw-r--r--etc/rc.d/network_ipv626
-rw-r--r--etc/rc.d/routing2
-rw-r--r--etc/rc.network2
-rw-r--r--etc/rc.network626
9 files changed, 19 insertions, 47 deletions
diff --git a/etc/network.subr b/etc/network.subr
index 00f6250..e3af24e 100644
--- a/etc/network.subr
+++ b/etc/network.subr
@@ -766,7 +766,7 @@ network_gif_setup() {
continue
;;
*)
- gifconfig $i ${peers}
+ ifconfig $i tunnel ${peers}
;;
esac
done
diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions
index 00f6250..e3af24e 100644
--- a/etc/rc.d/netoptions
+++ b/etc/rc.d/netoptions
@@ -766,7 +766,7 @@ network_gif_setup() {
continue
;;
*)
- gifconfig $i ${peers}
+ ifconfig $i tunnel ${peers}
;;
esac
done
diff --git a/etc/rc.d/network1 b/etc/rc.d/network1
index 00f6250..e3af24e 100644
--- a/etc/rc.d/network1
+++ b/etc/rc.d/network1
@@ -766,7 +766,7 @@ network_gif_setup() {
continue
;;
*)
- gifconfig $i ${peers}
+ ifconfig $i tunnel ${peers}
;;
esac
done
diff --git a/etc/rc.d/network2 b/etc/rc.d/network2
index 00f6250..e3af24e 100644
--- a/etc/rc.d/network2
+++ b/etc/rc.d/network2
@@ -766,7 +766,7 @@ network_gif_setup() {
continue
;;
*)
- gifconfig $i ${peers}
+ ifconfig $i tunnel ${peers}
;;
esac
done
diff --git a/etc/rc.d/network3 b/etc/rc.d/network3
index 00f6250..e3af24e 100644
--- a/etc/rc.d/network3
+++ b/etc/rc.d/network3
@@ -766,7 +766,7 @@ network_gif_setup() {
continue
;;
*)
- gifconfig $i ${peers}
+ ifconfig $i tunnel ${peers}
;;
esac
done
diff --git a/etc/rc.d/network_ipv6 b/etc/rc.d/network_ipv6
index dc6188a..a46194f 100644
--- a/etc/rc.d/network_ipv6
+++ b/etc/rc.d/network_ipv6
@@ -232,11 +232,11 @@ network6_pass1() {
case ${ipv6_ipv4mapping} in
[Yy][Ee][Ss])
echo -n ' IPv4 mapped IPv6 address support=YES'
- sysctl -w net.inet6.ip6.mapped_addr=1 >/dev/null
+ sysctl -w net.inet6.ip6.v6only=0 >/dev/null
;;
'' | *)
echo -n ' IPv4 mapped IPv6 address support=NO'
- sysctl -w net.inet6.ip6.mapped_addr=0 >/dev/null
+ sysctl -w net.inet6.ip6.v6only=1 >/dev/null
;;
esac
@@ -256,7 +256,6 @@ network6_interface_setup() {
;;
*)
rtsol_available=yes
- prefixcmd_enable=NO
;;
esac
for i in $interfaces; do
@@ -265,24 +264,11 @@ network6_interface_setup() {
if [ -n "${prefix}" ]; then
rtsol_available=no
rtsol_interface=no
+ laddr=`network6_getladdr $i`
+ hostid=`expr "${laddr}" : 'fe80::\(.*\)%\(.*\)'`
for j in ${prefix}; do
- case ${prefixcmd_enable} in
- [Yy][Ee][Ss])
- prefix $i $j::
- ;;
- *)
- laddr=`network6_getladdr $i`
- hostid=`expr "${laddr}" : \
- 'fe80::\(.*\)%\(.*\)'`
- address=$j\:${hostid}
-
- eval hostid_$i=${hostid}
- eval address_$i=${address}
-
- ifconfig $i inet6 ${address} \
- prefixlen 64 alias
- ;;
- esac
+ address=$j\:${hostid}
+ ifconfig $i inet6 ${address} prefixlen 64 alias
case ${ipv6_gateway_enable} in
[Yy][Ee][Ss])
diff --git a/etc/rc.d/routing b/etc/rc.d/routing
index 00f6250..e3af24e 100644
--- a/etc/rc.d/routing
+++ b/etc/rc.d/routing
@@ -766,7 +766,7 @@ network_gif_setup() {
continue
;;
*)
- gifconfig $i ${peers}
+ ifconfig $i tunnel ${peers}
;;
esac
done
diff --git a/etc/rc.network b/etc/rc.network
index 00f6250..e3af24e 100644
--- a/etc/rc.network
+++ b/etc/rc.network
@@ -766,7 +766,7 @@ network_gif_setup() {
continue
;;
*)
- gifconfig $i ${peers}
+ ifconfig $i tunnel ${peers}
;;
esac
done
diff --git a/etc/rc.network6 b/etc/rc.network6
index dc6188a..a46194f 100644
--- a/etc/rc.network6
+++ b/etc/rc.network6
@@ -232,11 +232,11 @@ network6_pass1() {
case ${ipv6_ipv4mapping} in
[Yy][Ee][Ss])
echo -n ' IPv4 mapped IPv6 address support=YES'
- sysctl -w net.inet6.ip6.mapped_addr=1 >/dev/null
+ sysctl -w net.inet6.ip6.v6only=0 >/dev/null
;;
'' | *)
echo -n ' IPv4 mapped IPv6 address support=NO'
- sysctl -w net.inet6.ip6.mapped_addr=0 >/dev/null
+ sysctl -w net.inet6.ip6.v6only=1 >/dev/null
;;
esac
@@ -256,7 +256,6 @@ network6_interface_setup() {
;;
*)
rtsol_available=yes
- prefixcmd_enable=NO
;;
esac
for i in $interfaces; do
@@ -265,24 +264,11 @@ network6_interface_setup() {
if [ -n "${prefix}" ]; then
rtsol_available=no
rtsol_interface=no
+ laddr=`network6_getladdr $i`
+ hostid=`expr "${laddr}" : 'fe80::\(.*\)%\(.*\)'`
for j in ${prefix}; do
- case ${prefixcmd_enable} in
- [Yy][Ee][Ss])
- prefix $i $j::
- ;;
- *)
- laddr=`network6_getladdr $i`
- hostid=`expr "${laddr}" : \
- 'fe80::\(.*\)%\(.*\)'`
- address=$j\:${hostid}
-
- eval hostid_$i=${hostid}
- eval address_$i=${address}
-
- ifconfig $i inet6 ${address} \
- prefixlen 64 alias
- ;;
- esac
+ address=$j\:${hostid}
+ ifconfig $i inet6 ${address} prefixlen 64 alias
case ${ipv6_gateway_enable} in
[Yy][Ee][Ss])
OpenPOWER on IntegriCloud