[patch] host routes not installed to their given default gateway when assigned a netmask of 255.255.255.255

Bug #69183 reported by cherry
2
Affects Status Importance Assigned to Milestone
dhcp3 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: dhcp3-client

Patch from James Goodlet of Sussex University IT services

--- /sbin/dhclient-script.bak 2006-10-29 23:33:39.000000000 +0000
+++ /sbin/dhclient-script 2006-10-29 23:34:52.000000000 +0000
@@ -184,6 +184,9 @@
                 $new_broadcast_arg $mtu_arg

             for router in $new_routers; do
+ if [ "$new_subnet_mask" = "255.255.255.255" ]; then
+ route add -host $router dev $interface
+ fi
                 route add default dev $interface gw $router $metric_arg
             done
         fi

Changed in dhcp3:
status: Unconfirmed → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.