GNOME Bugzilla – Bug 742719
[review] update systemd dhcp library [th/systemd-dhcp-integration]
Last modified: 2015-03-03 11:38:33 UTC
Reimport dhcp source from current upstream systemd
branch th/systemd-dhcp-integration
> dhcp: fix logging by reusing defines from systemds 'log.h' "fix" how? What exactly does this patch do? > dhcp: cherry-pick path_kill_slashes() I think it would be better to import (and then #ifdef out) the whole file, so that we get future updates to that function automatically.
Reworked and rebased. - improved commit messages - add two dhcp/trival commits - update to newest systemd commit - new commit "dhcp: add prefix to logging lines from systemd library"
Patrik just posted a series of patches for DHCPv6, and upstream usually applies them pretty quickly. Should we wait until upstream applies them and then do an import? Then we can also get DHCPv6 working for the internal client now that the code is more complete.
Repushed. useful to see the difference: HEAD=th/systemd-dhcp-integration MERGE=$(git rev-list --merges -n1 $HEAD) # how did we modify the systemd code? git diffs $MERGE^1 $HEAD -- src/dhcp-manager/systemd-dhcp/ # what changed in systemd since last merge: git diffs $MERGE^2 $HEAD -- src/dhcp-manager/systemd-dhcp/ git diffs $MERGE^2 $HEAD -- src/dhcp-manager/systemd-dhcp/src/libsystemd-network/ note that systemd changed the duid generation, so when updating NM, we will get a different IP address from server. I think that is acceptable, as dhcp-internal was in an early stage.
Changes look good to me, and still work with IPv4, and still retrieve the same IP address across runs.
merged first (uncontroversial) part of cleanups before reimporting dhcp code: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=def82cddea1906b5d721659a567f45fac247f724
reimported newest version from systemd master, and repushed.
The only comment I had was that we could use the glibc function if_indextoname() in dhcp_identifier_set_iaid() and get rid of our custom additions of sd_dhcp_client_set_ifname() and dhcp_identifier_set_iaid_from_name().
(In reply to Dan Williams from comment #9) > The only comment I had was that we could use the glibc function > if_indextoname() in dhcp_identifier_set_iaid() and get rid of our custom > additions of sd_dhcp_client_set_ifname() and > dhcp_identifier_set_iaid_from_name(). done and repushed.
merged to master: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=4e07f6117391ee4d112f8035039ef237c160e828