[systemd-devel] [PATCH] network: dhcp: create host route if dhcp subnet is 255.255.255.255

Brandon Philips brandon at ifup.co
Wed Mar 19 17:16:05 PDT 2014


Some DHCP servers gives you a netmask of 255.255.255.255 so gateway is
not routable. Make a host route instead.

This fixes the issue but the implementation is very specific. It would
probably be better to check the route table first. What do you think?

The code from dhcpcd that works around this issue is on line 637.
https://android.googlesource.com/platform/external/dhcpcd/+/master/configure.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 211-0001-network-dhcp-create-host-route-if-dhcp-subnet-is-255.patch
Type: application/octet-stream
Size: 3476 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140319/14898cce/attachment-0001.obj>


More information about the systemd-devel mailing list