summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortmarkwalder <tmark@isc.org>2017-06-30 14:22:17 -0400
committertmarkwalder <tmark@isc.org>2017-06-30 14:22:17 -0400
commit71dc36a5d34df55c462e032a0e3fbfcfe606de0e (patch)
tree6e0133b615126bbe5c822392e5321ef06ade288d
parentaaac1b3aecc1755804e3c2b9800e5c9f7a2785a6 (diff)
downloadisc-dhcp-71dc36a5d34df55c462e032a0e3fbfcfe606de0e.tar.gz
[v4_3] Use alias/-alias for ifconfig calls in netbsd & openbsd client scripts
Merges rt31573.
-rw-r--r--RELNOTES5
-rwxr-xr-xclient/scripts/netbsd4
-rw-r--r--client/scripts/openbsd4
3 files changed, 9 insertions, 4 deletions
diff --git a/RELNOTES b/RELNOTES
index e5634d4f..8a94df3b 100644
--- a/RELNOTES
+++ b/RELNOTES
@@ -205,6 +205,11 @@ by Eric Young (eay@cryptsoft.com).
includes/minires.h was renamed includes/ns_name.h.
[ISC-bugs #45471]
+- Replaced ifconfig parameters "add" and "delete" with "alias" and "-alias"
+ for IPv6 mode in the client scripts, netbsd and openbsd. This was
+ preventing IPv6 addresses from being added or removed from interfaces.
+ [ISC-bugs #31573]
+
Changes since 4.3.5b1
- Corrected a bug which could cause the server to sporadically crash while
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