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
F174066505: D17100.diff
Wed, Sep 30, 8:45 AM
F174065496: D17100.id49395.diff
Wed, Sep 30, 8:33 AM
F174055168: D17100.id47858.diff
Wed, Sep 30, 6:25 AM
F174055101: D17100.id47858.diff
Wed, Sep 30, 6:24 AM
Unknown Object (File)
Tue, Sep 22, 9:11 PM
Unknown Object (File)
Wed, Sep 16, 1:20 PM
Unknown Object (File)
Fri, Sep 11, 2:01 PM
Unknown Object (File)
Wed, Sep 2, 3:53 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

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