chiark / gitweb /
networkd: add preferred source to dhcp4 gateway route
authorEmil Renner Berthing <systemd@esmil.dk>
Fri, 5 Sep 2014 09:56:02 +0000 (11:56 +0200)
committerTom Gundersen <teg@jklm.no>
Mon, 8 Sep 2014 13:08:27 +0000 (15:08 +0200)
commit46b0c76e2c355c0d0cc4792abb98cde07b28bc53
treec5a3a16ed64d3d3470852f415293380361f6bfa8
parent4bd5ace3e78ec0ca4c174bc875e3d9f6e1ae7405
networkd: add preferred source to dhcp4 gateway route

This makes DHCPv4 and IPv4LL coexist peacefully.

[tomegun: apply to both the dhcp routes, use in_addr_is_null() rather than a
separate variable to indicate when prefsrc should be applied]
src/network/networkd-dhcp4.c
src/network/networkd-route.c
src/network/networkd.h