NetworkManager/src/systemd
Thomas Haller 39ac79c55d systemd: dhcp: handle multiple addresses for "Router" (option 3) in DHCP library
Imported from systemd:

    The Router DHCP option may contain a list of one or more
    routers ([1]). Extend the API of sd_dhcp_lease to return a
    list instead of only the first.

    Note that networkd still only uses the first router (if present).
    Aside from extending the internal API of the DHCP client, there
    is almost no change in behavior. The only visible difference in
    behavior is that the "ROUTER" variable in the lease file is now a
    list of addresses.

    Note how RFC 2132 does not define certain IP addresses as invalid for the
    router option. Still, previously sd_dhcp_lease_get_router() would never
    return a "0.0.0.0" address. In fact, the previous API could not
    differenciate whether no router option was present, whether it
    was invalid, or whether its first router was "0.0.0.0". No longer let
    the DHCP client library impose additional restrictions that are not
    part of RFC. Instead, the caller should handle this. The patch does
    that, and networkd only consideres the first router entry if it is not
    "0.0.0.0".

    [1] https://tools.ietf.org/html/rfc2132#section-3.5

This also required adjusting "src/dhcp/nm-dhcp-systemd.c" due to the
changed internal API.

f8862395e8
2019-02-19 16:18:57 +01:00
..
sd-adapt-core systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
src systemd: dhcp: handle multiple addresses for "Router" (option 3) in DHCP library 2019-02-19 16:18:57 +01:00
meson.build libnm: use "libnm-systemd-shared.a" in "libnm-core.la" (and "libnm.so") 2019-01-02 17:08:41 +01:00
nm-sd-utils-core.c systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
nm-sd-utils-core.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
nm-sd.c systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
nm-sd.h build: don't add systemd path the include search path 2016-09-27 14:13:21 +02:00