dhclient-script: fix for gateway not in the end of rfc3442 routes list (#1251644)
This commit is contained in:
parent
609ced7095
commit
262d627cf9
@ -409,6 +409,9 @@ dhconfig() {
|
|||||||
[ -n "${new_static_routes}" ]; then
|
[ -n "${new_static_routes}" ]; then
|
||||||
if [ -n "${new_classless_static_routes}" ]; then
|
if [ -n "${new_classless_static_routes}" ]; then
|
||||||
IFS=', |' static_routes=(${new_classless_static_routes})
|
IFS=', |' static_routes=(${new_classless_static_routes})
|
||||||
|
# If the DHCP server returns both a Classless Static Routes option and
|
||||||
|
# a Router option, the DHCP client MUST ignore the Router option. (RFC3442)
|
||||||
|
new_routers=""
|
||||||
else
|
else
|
||||||
IFS=', |' static_routes=(${new_static_routes})
|
IFS=', |' static_routes=(${new_static_routes})
|
||||||
fi
|
fi
|
||||||
@ -417,9 +420,6 @@ dhconfig() {
|
|||||||
for((i=0; i<${#static_routes[@]}; i+=2)); do
|
for((i=0; i<${#static_routes[@]}; i+=2)); do
|
||||||
target=${static_routes[$i]}
|
target=${static_routes[$i]}
|
||||||
if [ -n "${new_classless_static_routes}" ]; then
|
if [ -n "${new_classless_static_routes}" ]; then
|
||||||
# If the DHCP server returns both a Classless Static Routes option and
|
|
||||||
# a Router option, the DHCP client MUST ignore the Router option. (RFC3442)
|
|
||||||
new_routers=""
|
|
||||||
if [ "${target}" = "0" ]; then
|
if [ "${target}" = "0" ]; then
|
||||||
new_routers="${static_routes[$i+1]}"
|
new_routers="${static_routes[$i+1]}"
|
||||||
continue
|
continue
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
Summary: Dynamic host configuration protocol software
|
Summary: Dynamic host configuration protocol software
|
||||||
Name: dhcp
|
Name: dhcp
|
||||||
Version: 4.3.3
|
Version: 4.3.3
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
# NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to
|
# NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to
|
||||||
# dcantrell maintaining the package) made incorrect use of the epoch and
|
# 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.
|
# that's why it is at 12 now. It should have never been used, but it was.
|
||||||
@ -663,6 +663,9 @@ done
|
|||||||
%doc doc/html/
|
%doc doc/html/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 13 2015 Jiri Popelka <jpopelka@redhat.com> - 12:4.3.3-5
|
||||||
|
- dhclient-script: fix for gateway not in the end of rfc3442 routes list (#1251644)
|
||||||
|
|
||||||
* Tue Oct 13 2015 Jiri Popelka <jpopelka@redhat.com> - 12:4.3.3-4
|
* Tue Oct 13 2015 Jiri Popelka <jpopelka@redhat.com> - 12:4.3.3-4
|
||||||
- dhclient-script: make_resolv_conf(): keep old nameservers
|
- dhclient-script: make_resolv_conf(): keep old nameservers
|
||||||
if server sends domain-name/search, but no nameservers (#1269595)
|
if server sends domain-name/search, but no nameservers (#1269595)
|
||||||
|
Loading…
Reference in New Issue
Block a user