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

Tom Gundersen teg at jklm.no
Fri Mar 21 11:24:32 PDT 2014


On Thu, Mar 20, 2014 at 1:16 AM, Brandon Philips <brandon at ifup.co> wrote:
> 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

This patch was superseded by a follow up.

-t


More information about the systemd-devel mailing list