]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
eloop: Make the API more like native poll/kqueue/epoll
authorRoy Marples <roy@marples.name>
Tue, 2 Feb 2021 14:41:54 +0000 (14:41 +0000)
committerRoy Marples <roy@marples.name>
Tue, 2 Feb 2021 14:41:54 +0000 (14:41 +0000)
commit5d619328bf07da0b6b209ce12f22381a4fe435e0
tree5ace2bdf2c31a21315447462ee10b4e1f9f12e64
parentb042338612f18c9be8576c258006f94395db6297
eloop: Make the API more like native poll/kqueue/epoll

Just have the one callback, but return an abstracted event mask
to work out if we can read/write have something else.
Log diagnostics if the event mask is unexpected.

While here add more logging if we fail to register an event to
monitor.
14 files changed:
src/arp.c
src/control.c
src/dhcp.c
src/dhcp6.c
src/dhcpcd.c
src/eloop.c
src/eloop.h
src/ipv6nd.c
src/privsep-bpf.c
src/privsep-control.c
src/privsep-inet.c
src/privsep-root.c
src/privsep.c
src/privsep.h