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.
Details
Details
- Reviewers
np - Group Reviewers
network manpages - Commits
- rS339537: Add ifaddr_event_ext event. It is similar to ifaddr_event, but the
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable