- Make dhclient-script add IPv6 address to interface (#531997)

This commit is contained in:
Jiří Popelka 2009-10-30 09:51:58 +00:00
parent 1e876e9350
commit 9726e0ff9f
2 changed files with 7 additions and 10 deletions

View File

@ -405,16 +405,14 @@ dhconfig() {
dh6config() {
case "${reason}" in
BOUND6)
if [ -n "${new_ip6_address}" ] ||
[ -n "${new_ip6_prefixlen}" ]; then
if [ -z "${new_ip6_address}" ] &&
[ -z "${new_ip6_prefixlen}" ]; then
exit_with_hooks 2
fi
ip -f inet6 addr add ${new_ip6_address}/${new_ip6_prefixlen} \
dev ${interface} scope global
make_resolv_conf
break
;;
RENEW6|REBIND6)
@ -422,19 +420,15 @@ dh6config() {
[ ! "${new_dhcp6_domain_search}" = "${old_dhcp6_domain_search}" ]; then
make_resolv_conf
fi
break
;;
DEPREF6)
if [ -n "${new_ip6_prefixlen}" ]; then
if [ -z "${new_ip6_prefixlen}" ]; then
exit_with_hooks 2
fi
ip -f inet6 addr change ${new_ip6_address}/${new_ip6_prefixlen} \
dev ${interface} scope global preferred_lft 0
break
;;
esac

View File

@ -13,7 +13,7 @@
Summary: Dynamic host configuration protocol software
Name: dhcp
Version: %{basever}p1
Release: 12%{?dist}
Release: 13%{?dist}
# NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to
# dcantrell maintaining the package) made incorrect use of the epoch and
# that's why it is at 12 now. It should have never been used, but it was.
@ -481,6 +481,9 @@ fi
%attr(0644,root,root) %{_mandir}/man3/omapi.3.gz
%changelog
* Fri Oct 30 2009 Jiri Popelka <jpopelka@redhat.com> - 12:4.1.0p1-13
- Make dhclient-script add IPv6 address to interface (#531997)
* Tue Oct 13 2009 Jiri Popelka <jpopelka@redhat.com> - 12:4.1.0p1-12
- Fix 56dhclient so network comes back after suspend/hibernate (#527641)