Page MenuHomeFreeBSD

Extend ifaddr_event to pass ifaddr and event type to handler
ClosedPublic

Authored by ae on Sep 10 2018, 12:48 PM.
Tags
None
Referenced Files
F168001323: D17100.diff
Tue, Aug 25, 8:47 PM
F167857547: D17100.id.diff
Tue, Aug 25, 1:18 AM
Unknown Object (File)
Mon, Aug 24, 5:15 AM
Unknown Object (File)
Sun, Aug 23, 4:31 PM
Unknown Object (File)
Sun, Aug 23, 4:07 PM
Unknown Object (File)
Fri, Aug 21, 3:14 PM
Unknown Object (File)
Tue, Aug 18, 4:28 PM
Unknown Object (File)
Mon, Aug 17, 2:30 PM

Details

Summary

ifaddr_event is used to notify registered consumer about changes for AF_INET/AF_INET6 addresses.
But handler is forced to track all needed addresses and for every notify look what address is deleted or added.
This patch introduces new ifaddr_event_ext event. Now consumer can register handler for this event, and the handler will receive the type of event IFADDR_EVENT_ADD or IFADDR_EVENT_DEL, and also pointer to ifaddr.
The patch also implements ifaddr_event in the ifaddr_event_ext handler.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 19487
Build 19080: arc lint + arc unit