diff options
author | Tom Gundersen <teg@jklm.no> | 2015-10-01 22:29:50 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-10-30 12:32:49 +0100 |
commit | 0bc70f1d9c5453ba614ec0ed041dc30b9cd52071 (patch) | |
tree | d20f295d7f498f754a7cd4c20a05b4da8615a314 /src/network/networkd-ipv4ll.c | |
parent | c4a03a5669af8abd752bff9084c29683ae78e11e (diff) |
networkd: link - (de)serialize IPv4LL and DHCPv4 addresses
This initializes the clients to try rebinding the preexisting
addresses before doing anything else.
Diffstat (limited to 'src/network/networkd-ipv4ll.c')
-rw-r--r-- | src/network/networkd-ipv4ll.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/network/networkd-ipv4ll.c b/src/network/networkd-ipv4ll.c index 59abb1e8d4..ed0d861e7a 100644 --- a/src/network/networkd-ipv4ll.c +++ b/src/network/networkd-ipv4ll.c @@ -208,9 +208,11 @@ int ipv4ll_configure(Link *link) { assert(link->network); assert(link->network->link_local & ADDRESS_FAMILY_IPV4); - r = sd_ipv4ll_new(&link->ipv4ll); - if (r < 0) - return r; + if (!link->ipv4ll) { + r = sd_ipv4ll_new(&link->ipv4ll); + if (r < 0) + return r; + } if (link->udev_device) { r = net_get_unique_predictable_data(link->udev_device, seed); |