NetworkManager/src/dhcp
Beniamino Galvani 76a6a30577 dhcp6: don't require a hardware address
The systemd DHCPv6 client requires a hardware address only to
determine the IAID; NM always overrides the IAID with its own and
therefore the hwaddr is not used.

Removing such requirement allows DHCPv6 to run over PPP, which is
useful with DHCPv6-PD to get a prefix from the ISP.

To test this, I set up a server with pppoe-server, radvd and the Wide
DHCPv6 server providing an address and a prefix. On the client, NM was
able to obtain a prefix using both dhcp=dhclient and dhcp=systemd.

Note that if there is no hardware address and you specify
ipv6.dhcp-duid=ll or ipv6.dhcp-iaid=mac, a warning will be emitted and
NM will use a random DUID/IAID.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/478
2020-07-29 18:08:53 +02:00
..
tests dhcp: rename mudurl to mud_url 2020-04-24 10:09:50 +02:00
meson.build license: Add license using SPDX identifiers to meson build files 2020-02-17 13:16:57 +01:00
nm-dhcp-client-logging.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-dhcp-client.c all: fix minor typos 2020-07-07 11:33:46 +02:00
nm-dhcp-client.h dhcp: rename mudurl to mud_url 2020-04-24 10:09:50 +02:00
nm-dhcp-dhclient-utils.c all: fix typo in man pages 2020-07-03 10:48:04 +02:00
nm-dhcp-dhclient-utils.h dhcp: rename mudurl to mud_url 2020-04-24 10:09:50 +02:00
nm-dhcp-dhclient.c all: fix typo in man pages 2020-07-03 10:48:04 +02:00
nm-dhcp-dhcpcanon.c all: drop explicit casts from _GET_PRIVATE() macro calls 2020-02-14 11:04:46 +01:00
nm-dhcp-dhcpcd.c all: drop explicit casts from _GET_PRIVATE() macro calls 2020-02-14 11:04:46 +01:00
nm-dhcp-helper-api.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-dhcp-helper.c dhcp: cleanup build_signal_parameters() in nm-dhcp-helper 2020-04-30 11:20:12 +02:00
nm-dhcp-listener.c all: use nm_clear_pointer() instead of g_clear_pointer() 2020-03-23 11:22:38 +01:00
nm-dhcp-listener.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-dhcp-manager.c dhcp6: don't require a hardware address 2020-07-29 18:08:53 +02:00
nm-dhcp-manager.h dhcp6: don't require a hardware address 2020-07-29 18:08:53 +02:00
nm-dhcp-nettools.c all: fix minor typos 2020-07-07 11:33:46 +02:00
nm-dhcp-options.c dhcp: rename mudurl to mud_url 2020-04-24 10:09:50 +02:00
nm-dhcp-options.h dhcp: rename mudurl to mud_url 2020-04-24 10:09:50 +02:00
nm-dhcp-systemd.c dhcp6: don't require a hardware address 2020-07-29 18:08:53 +02:00
nm-dhcp-utils.c core: fix treating route metric zero of IPv6 routes special 2020-07-07 16:14:58 +02:00
nm-dhcp-utils.h dhcp: test parsing of domain-search option 2019-12-23 16:19:35 +01:00