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
Unknown Object (File)
Sun, Feb 9, 12:25 AM
Unknown Object (File)
Jan 16 2025, 8:52 PM
Unknown Object (File)
Dec 21 2024, 1:20 AM
Unknown Object (File)
Dec 12 2024, 7:33 PM
Unknown Object (File)
Nov 24 2024, 4:59 AM
Unknown Object (File)
Nov 23 2024, 5:28 AM
Unknown Object (File)
Nov 22 2024, 7:29 PM
Unknown Object (File)
Oct 23 2024, 4:45 AM

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