Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added a configuration variable for MIP_MIGRATE to rc scripts for MIP/…

…NEMO.

adviced from Francis Dupont.
  • Loading branch information...
commit fcaf2cc53464b35f9124558ed2684f8c588a29dc 1 parent 33ec914
keiichi authored
Showing with 25 additions and 7 deletions.
  1. +12 −3 freebsd5/etc/rc.d/network_ipv6_mobile
  2. +13 −4 netbsd/etc/rc.d/mobileip6
View
15 freebsd5/etc/rc.d/network_ipv6_mobile
@@ -78,6 +78,15 @@ network_ipv6_mobile_start()
;;
esac
+ case ${ipv6_mobile_migrate_enable} in
+ [Yy][Ee][Ss])
+ ${SYSCTL_W} net.inet6.mip6.use_migrate=1
+ ;;
+ [Nn][Oo])
+ ${SYSCTL_W} net.inet6.mip6.use_migrate=0
+ ;;
+ esac
+
case ${ipv6_mobile_nodetype} in
[Mm][Oo][Bb][Ii][Ll][Ee]_[Nn][Oo][Dd][Ee])
${SYSCTL_W} net.inet6.ip6.accept_rtadv=1 > /dev/null
@@ -85,7 +94,7 @@ network_ipv6_mobile_start()
if [ `${SYSCTL_N} net.inet6.mip6.use_ipsec` = "1" ]; then
for node_dir in ${ipv6_mobile_config_dir}/*
do
- if [ ! -e ${node_dir}/add ]; then
+ if [ ! -e ${node_dir}/spdadd_mobile_node ]; then
continue;
fi
setkey -f ${node_dir}/add
@@ -118,7 +127,7 @@ network_ipv6_mobile_start()
if [ `${SYSCTL_N} net.inet6.mip6.use_ipsec` = "1" ]; then
for node_dir in ${ipv6_mobile_config_dir}/*
do
- if [ ! -e ${node_dir}/add ]; then
+ if [ ! -e ${node_dir}/spdadd_mobile_node ]; then
continue;
fi
setkey -f ${node_dir}/add
@@ -167,7 +176,7 @@ network_ipv6_mobile_start()
if [ `sysctl -n net.inet6.mip6.use_ipsec` = '1' ]; then
for node_dir in ${ipv6_mobile_config_dir}/*
do
- if [ ! -e ${node_dir}/add ]; then
+ if [ ! -e ${node_dir}/spdadd_home_agent ]; then
continue;
fi
setkey -f ${node_dir}/add
View
17 netbsd/etc/rc.d/mobileip6
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: mobileip6,v 1.13 2005/10/20 08:01:21 kei Exp $
+# $Id: mobileip6,v 1.14 2005/11/25 01:36:17 keiichi Exp $
# REQUIRE: network
# PROVIDE: mobileip6
@@ -53,13 +53,22 @@ mobileip6_start()
;;
esac
+ case ${ipv6_mobile_migrate_enable} in
+ [Yy][Ee][Ss])
+ sysctl -qw net.inet6.mip6.use_migrate=1
+ ;;
+ [Nn][Oo])
+ sysctl -qw net.inet6.mip6.use_migrate=0
+ ;;
+ esac
+
case ${ipv6_mobile_nodetype} in
[Mm][Oo][Bb][Ii][Ll][Ee]_[Nn][Oo][Dd][Ee])
# setup SPD/SA
if [ `sysctl -n net.inet6.mip6.use_ipsec` = '1' ]; then
for node_dir in ${ipv6_mobile_config_dir}/*
do
- if [ ! -e ${node_dir}/add ]; then
+ if [ ! -e ${node_dir}/spdadd_mobile_node ]; then
continue;
fi
setkey -f ${node_dir}/add
@@ -85,7 +94,7 @@ mobileip6_start()
if [ `sysctl -n net.inet6.mip6.use_ipsec` = '1' ]; then
for node_dir in ${ipv6_mobile_config_dir}/*
do
- if [ ! -e ${node_dir}/add ]; then
+ if [ ! -e ${node_dir}/spdadd_mobile_node ]; then
continue;
fi
setkey -f ${node_dir}/add
@@ -129,7 +138,7 @@ mobileip6_start()
if [ `sysctl -n net.inet6.mip6.use_ipsec` = '1' ]; then
for node_dir in ${ipv6_mobile_config_dir}/*
do
- if [ ! -e ${node_dir}/add ]; then
+ if [ ! -e ${node_dir}/spdadd_home_agent ]; then
continue;
fi
setkey -f ${node_dir}/add
Please sign in to comment.
Something went wrong with that request. Please try again.