diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2019-11-08 07:16:30 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2019-11-08 07:16:30 +0000 |
commit | cc9483a80803855ffa3376b13ebbd8b6e388cee1 (patch) | |
tree | 837221515cc522324b695dbd52708970926136b6 /usr.sbin/usbdevs/usbdevs.c | |
parent | 49a5ca10756fe16735beacb0938189fe6b04b0e6 (diff) |
convert interface address change hooks to tasks and a task_list.
this follows what's been done for detach and link state hooks, and
makes handling of hooks generally more robust.
address hooks are a bit different to detach/link state hooks in
that there's only a few things that register hooks (carp, pf, vxlan),
but a lot of places to run the hooks (lots of ipv4 and ipv6 address
configuration).
an address hook cookie was in struct pfi_kif, which is part of the
pf abi. rather than break pfctl -sI, this maintains the void * used
for the cookie and uses it to store a task, which is then used as
intended with the new api.
Diffstat (limited to 'usr.sbin/usbdevs/usbdevs.c')
0 files changed, 0 insertions, 0 deletions