]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.c
networkd: Honor configured DHCP ClientIdentifier on link_update (#6622)
authorJon Ringle <ringlej@users.noreply.github.com>
Wed, 30 Aug 2017 09:38:00 +0000 (05:38 -0400)
committerLennart Poettering <lennart@poettering.net>
Wed, 30 Aug 2017 09:38:00 +0000 (11:38 +0200)
commite4f05508add524cbde0a8d63752d3620c954edcb
tree50ee7f364c4dd87b99de8c7eb554479cf0ca278a
parent30495cb0a780a11efce47c89fb1eec12b50b52d2
networkd: Honor configured DHCP ClientIdentifier on link_update (#6622)

We have an embedded board with a couple of ethernet ports. From the kernel
log, I can see that the ethernet drivers are obtaining their correct MAC
address, but for some reason, at first systemd-networkd doesn't see the
mac address for the ethernet port at the time that it looks at
dhcp_client_identifier configuration (it has 00:00:00:00:00:00 for mac).

Later on, systemd-networkd gets a link_update() call, and at this time, it
has the correct mac address for the ethernet port. However, in link_update()
the dhcp_client_identifier configuration is not being considered, and a call
to sd_dhcp_client_set_iaid_duid() is being done always
src/network/networkd-link.c