dhclient-script: arping address in BOUND|RENEW|REBIND|REBOOT (#752116)
This commit is contained in:
parent
3f959ce1db
commit
9af3b80de3
@ -642,8 +642,8 @@ old_prefix="$(get_prefix ${old_ip_address} ${old_subnet_mask})"
|
||||
alias_prefix="$(get_prefix ${alias_ip_address} ${alias_subnet_mask})"
|
||||
|
||||
case "${reason}" in
|
||||
MEDIUM)
|
||||
# Linux doesn't handle mediums (media)
|
||||
MEDIUM|ARPCHECK|ARPSEND)
|
||||
# Do nothing
|
||||
exit_with_hooks 0
|
||||
;;
|
||||
|
||||
@ -677,18 +677,17 @@ case "${reason}" in
|
||||
exit_with_hooks 0
|
||||
;;
|
||||
|
||||
ARPCHECK|ARPSEND)
|
||||
if [ -z "${new_ip_address}" ] || [ -z "${interface}" ] ||
|
||||
arping -q -f -c 2 -w 3 -D -I ${interface} ${new_ip_address}; then
|
||||
exit_with_hooks 0
|
||||
else
|
||||
exit_with_hooks 1
|
||||
fi
|
||||
;;
|
||||
|
||||
BOUND|RENEW|REBIND|REBOOT)
|
||||
if [ -z "${interface}" ] || [ -z "${new_ip_address}" ]; then
|
||||
exit_with_hooks 2
|
||||
fi
|
||||
if arping -D -q -c2 -I ${interface} ${new_ip_address}; then
|
||||
dhconfig
|
||||
exit_with_hooks 0
|
||||
else
|
||||
# DAD failed, i.e. address is already in use
|
||||
exit_with_hooks 1
|
||||
fi
|
||||
;;
|
||||
|
||||
BOUND6|RENEW6|REBIND6|DEPREF6)
|
||||
|
@ -22,7 +22,7 @@
|
||||
Summary: Dynamic host configuration protocol software
|
||||
Name: dhcp
|
||||
Version: 4.2.3
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?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.
|
||||
@ -669,6 +669,9 @@ fi
|
||||
%{_initddir}/dhcrelay
|
||||
|
||||
%changelog
|
||||
* Fri Nov 11 2011 Jiri Popelka <jpopelka@redhat.com> - 12:4.2.3-5
|
||||
- dhclient-script: arping address in BOUND|RENEW|REBIND|REBOOT (#752116)
|
||||
|
||||
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 12:4.2.3-4
|
||||
- Rebuilt for glibc bug#747377
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user