]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/systemd/sd-ipv4ll.h
libsystemd-network: sd-ipv4ll: Wrapper to restart address aquisition after conflict
authorJason Reeder <jasonreeder@gmail.com>
Fri, 31 Mar 2017 19:23:10 +0000 (14:23 -0500)
committerJason Reeder <jasonreeder@gmail.com>
Fri, 31 Mar 2017 20:29:00 +0000 (15:29 -0500)
commit5e25a13a05b2a3844295ca4a2a7e0f12de203ccb
tree869687291a090397b47de63bd8b302a917489836
parent765a00b98d9176aeafc8a677a0e426edd2a20aab
libsystemd-network: sd-ipv4ll: Wrapper to restart address aquisition after conflict

After an ipv4ll claimed address conflict occurs a new address needs
to be chosen and then the acquisition state machine needs to be
restarted.

This commit adds a function (sd_ipv4ll_restart) that clears the
previously acquired address (ll->address) and then calls the existing
sd_ipv4ll_start function to choose the new address and start the
acquisition.

Signed-off-by: Jason Reeder <jasonreeder@gmail.com>
src/libsystemd-network/sd-ipv4ll.c
src/systemd/sd-ipv4ll.h