diff options
author | Thomas Haller <thaller@redhat.com> | 2018-12-14 17:04:21 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-12-19 09:23:08 +0100 |
commit | 3102b49f623c499638c8f284c2f651829f904dc2 (patch) | |
tree | 95844e19b70d2a0d61688e5735511518068b6831 /src/dhcp/nm-dhcp-systemd.c | |
parent | 9a6a35401322e2b387fb164f7f2d68963f4a1512 (diff) | |
download | NetworkManager-3102b49f623c499638c8f284c2f651829f904dc2.tar.gz |
core: allow addresses with zero prefix length
There is really no problem here, allow it.
Previously we would assert against a non-zero prefix length.
But I am not sure that all callers really ensured that this
couldn't happen. Anyway, there is no problem we such addresses,
really.
Only we need to make sure that nm_ip4_config_add_dependent_routes()
and nm_ip6_config_add_dependent_routes() don't add prefix routes for
such addresses (which is the case now).
Diffstat (limited to 'src/dhcp/nm-dhcp-systemd.c')
-rw-r--r-- | src/dhcp/nm-dhcp-systemd.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/dhcp/nm-dhcp-systemd.c b/src/dhcp/nm-dhcp-systemd.c index 3f9530b661..614485c4e7 100644 --- a/src/dhcp/nm-dhcp-systemd.c +++ b/src/dhcp/nm-dhcp-systemd.c @@ -310,7 +310,6 @@ lease_to_ip4_config (NMDedupMultiIndex *multi_idx, SD_DHCP_OPTION_IP_ADDRESS_LEASE_TIME, (guint64) (ts_time + a_lifetime)); - // TODO: ensure a_plen of zero is handled correctly. nm_ip4_config_add_address (ip4_config, &((const NMPlatformIP4Address) { .address = a_address.s_addr, |