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
F103263648: D17100.diff
Fri, Nov 22, 7:29 PM
Unknown Object (File)
Oct 23 2024, 4:45 AM
Unknown Object (File)
Oct 5 2024, 11:06 PM
Unknown Object (File)
Sep 22 2024, 6:20 AM
Unknown Object (File)
Sep 20 2024, 12:44 PM
Unknown Object (File)
Sep 19 2024, 3:18 AM
Unknown Object (File)
Sep 18 2024, 12:09 PM
Unknown Object (File)
Sep 18 2024, 6:09 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable