]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.c
sd-ipv4ll: Add reference counting for IPv4LL
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 9 Apr 2014 10:12:09 +0000 (13:12 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 11 Apr 2014 07:53:52 +0000 (10:53 +0300)
commit56cd007ab83749b85670c9c7f560e083980c2ff4
treebcad53e6e2595084a768154a8dff72f3814f8534
parent781ca7a13feb01739a9aa8b629ff1ff7c51e74aa
sd-ipv4ll: Add reference counting for IPv4LL

Similar to DHCP, the IPv4LL library user can decide to free the LL
client any time the callback is called. Guard against freeing the
LL client in the callback by introducing proper reference counting.

Also update code using the IPv4LL library to properly handle a
returned NULL from the notify and stop functions if the IPv4LL
client was freed.
src/libsystemd-network/sd-ipv4ll.c
src/network/networkd-link.c
src/systemd/sd-ipv4ll.h