Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
dhcp
Commits
babe4149
Commit
babe4149
authored
Jun 30, 2017
by
Thomas Markwalder
Browse files
[master] Use alias/-alias for ifconfig calls in netbsd & openbsd client scripts
Merges rt31573.
parent
30afd7db
Changes
3
Hide whitespace changes
Inline
Side-by-side
RELNOTES
View file @
babe4149
...
...
@@ -1124,6 +1124,11 @@ by Eric Young (eay@cryptsoft.com).
number
of
false
positives
when
UDP
checksum
offloading
is
enabled
.
[
ISC
-
bugs
#
41757
]
-
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.2.0
(
new
features
)
-
If
a
client
renews
before
'dhcp-cache-threshold'
percent
of
its
lease
...
...
client/scripts/netbsd
View file @
babe4149
...
...
@@ -314,7 +314,7 @@ if [ ${reason} = BOUND6 ] ; then
exit_with_hooks 2
;
fi
ifconfig
${
interface
}
inet6 a
dd
${
new_ip6_address
}
/
${
new_ip6_prefixlen
}
ifconfig
${
interface
}
inet6
a
lias
${
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
...
...
client/scripts/openbsd
View file @
babe4149
...
...
@@ -308,7 +308,7 @@ if [ ${reason} = BOUND6 ] ; then
exit_with_hooks 2
;
fi
ifconfig
${
interface
}
inet6 a
dd
${
new_ip6_address
}
/
${
new_ip6_prefixlen
}
ifconfig
${
interface
}
inet6
a
lias
${
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment