summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authortmarkwalder <tmark@isc.org>2017-06-30 14:12:23 -0400
committertmarkwalder <tmark@isc.org>2017-06-30 14:12:23 -0400
commitbabe4149c52d5d4e97f3db3768e5b907d4065990 (patch)
tree59cfecabfde8ea9362f651d81937b20efd4d6bac /client
parent30afd7dbfa4c60736ee926e6621631b0a3bc9523 (diff)
downloadisc-dhcp-babe4149c52d5d4e97f3db3768e5b907d4065990.tar.gz
[master] Use alias/-alias for ifconfig calls in netbsd & openbsd client scripts
Merges rt31573.
Diffstat (limited to 'client')
-rwxr-xr-xclient/scripts/netbsd4
-rw-r--r--client/scripts/openbsd4
2 files changed, 4 insertions, 4 deletions
diff --git a/client/scripts/netbsd b/client/scripts/netbsd
index 6a41edf4..07383b78 100755
--- a/client/scripts/netbsd
+++ b/client/scripts/netbsd
@@ -314,7 +314,7 @@ if [ ${reason} = BOUND6 ] ; then
exit_with_hooks 2;
fi
- ifconfig ${interface} inet6 add ${new_ip6_address}/${new_ip6_prefixlen}
+ ifconfig ${interface} inet6 alias ${new_ip6_address}/${new_ip6_prefixlen}
# Check for nameserver options.
make_resolv_conf
@@ -351,7 +351,7 @@ if [ ${reason} = EXPIRE6 -o ${reason} = RELEASE6 -o ${reason} = STOP6 ] ; then
exit_with_hooks 2;
fi
- ifconfig ${interface} inet6 delete ${old_ip6_address}/${old_ip6_prefixlen}
+ ifconfig ${interface} inet6 -alias ${old_ip6_address}/${old_ip6_prefixlen}
exit_with_hooks 0
fi
diff --git a/client/scripts/openbsd b/client/scripts/openbsd
index 151b50aa..e7f4746f 100644
--- a/client/scripts/openbsd
+++ b/client/scripts/openbsd
@@ -308,7 +308,7 @@ if [ ${reason} = BOUND6 ] ; then
exit_with_hooks 2;
fi
- ifconfig ${interface} inet6 add ${new_ip6_address}/${new_ip6_prefixlen}
+ ifconfig ${interface} inet6 alias ${new_ip6_address}/${new_ip6_prefixlen}
# Check for nameserver options.
make_resolv_conf
@@ -345,7 +345,7 @@ if [ ${reason} = EXPIRE6 -o ${reason} = RELEASE6 -o ${reason} = STOP6 ] ; then
exit_with_hooks 2;
fi
- ifconfig ${interface} inet6 delete ${old_ip6_address}/${old_ip6_prefixlen}
+ ifconfig ${interface} inet6 -alias ${old_ip6_address}/${old_ip6_prefixlen}
exit_with_hooks 0
fi