2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 06:15:55 +00:00

- The dhclient-script was updated to create a host route for the default

gateway if the supplied subnet mask for an IPv4 address was a /32.  This
  allows the client to work in 'captive' network environments, where the
  operator does not want clients to crosstalk directly.  [ISC-Bugs #17200]
This commit is contained in:
David Hankins
2008-01-16 23:02:10 +00:00
parent 219a65eb6e
commit 30922d9c3c
3 changed files with 21 additions and 1 deletions

View File

@@ -166,6 +166,9 @@ if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \
route add -net $new_network_number $new_subnet_arg dev $interface
fi
for router in $new_routers; do
if [ "x$new_subnet_mask" = "x255.255.255.255" ] ; then
route add -host $router dev $interface
fi
route add default gw $router
done
fi
@@ -214,6 +217,9 @@ if [ x$reason = xTIMEOUT ]; then
route add -net $new_network_number
fi
for router in $new_routers; do
if [ "x$new_subnet_mask" = "x255.255.255.255" ] ; then
route add -host $router dev $interface
fi
route add default gw $router
done
make_resolv_conf