diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2025-12-21 21:31:43 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2025-12-22 02:23:14 +0000 |
| commit | 349fcf079ca32d5c93e45366d2b27638747affeb (patch) | |
| tree | 8ff64fc69c22de064389cc4552a64f484f672e87 /lib | |
| parent | e3d6cf8c3f6c9203fbb60a16fde18cc751a80de1 (diff) | |
net: add ifnet_rename_event EVENTHANDLER(9) for interface renaming
and don't trigger ifnet_arrival_event and ifnet_departure_event for a
rename, as the interface isn't being detached from any protocol. The
consumers of the arrival/departure events are divided into a few
categories:
- which indeed need to do the same actions as if interface was fully
detached and attached: routing socket and netlink notifications to
userland and the Linux sysfs. All addressed by this commit.
- which build their logic based on an interface name, but should actually
update their database on rename: packet filters. This commit leaves
them with the old behavior - emulate full detach & attach, but this
should be improved.
- which shouldn't do anything on rename, not touched by the commit.
- ng_ether and if_tuntap, that are special and will be addressed by
separate commits.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
