freebsd-dev/sys
Alexander V. Chernikov d8b42ddcac rtsock: subscribe to ifnet eventhandlers instead of direct calls.
Stop treating rtsock as a "special" consumer and use already-provided
 ifaddr arrival/departure notifications.

MFC after:	2 weeks

Test Plan:
```
21:05 [0] m@devel0 route -n monitor

-> ifconfig vtnet0.2 create

got message of size 24 on Tue Aug  9 21:05:44 2022
RTM_IFANNOUNCE: interface arrival/departure: len 24, if# 3, what: arrival

got message of size 168 on Tue Aug  9 21:05:54 2022
RTM_IFINFO: iface status change: len 168, if# 3, link: up, flags:<BROADCAST,RUNNING,SIMPLEX,MULTICAST>

-> ifconfig vtnet0.2 destroy

got message of size 24 on Tue Aug  9 21:05:54 2022
RTM_IFANNOUNCE: interface arrival/departure: len 24, if# 3, what: departure

```

Reviewed By: glebius
Differential Revision: https://reviews.freebsd.org/D36095
MFC after:	2 weeks
2022-08-11 20:36:59 +00:00
..
amd64 AST: rework 2022-08-02 21:11:09 +03:00
arm arm: Clear TTBCR before enabling the MMU 2022-08-05 16:21:09 -04:00
arm64 Add RockChip RK356X support to existing RockChip thermal driver. 2022-08-11 08:26:39 +00:00
bsm
cam Delay GEOM disk_create() until CAM periph probe completes. 2022-07-14 16:17:36 -04:00
cddl dtrace/amd64: Implement emulation of call instructions 2022-08-09 18:34:01 -04:00
compat elf_note_prpsinfo: handle more failures from proc_getargv() 2022-08-09 15:44:45 -04:00
conf Retire 4.4BSD raw sockets 2022-08-11 09:19:36 -07:00
contrib Import device-tree files from Linux 5.18 2022-08-10 14:32:46 +02:00
crypto skein: Update guard define check 2022-07-24 16:53:35 -06:00
ddb Adjust db_flush_line() definition to avoid clang 15 warning 2022-07-19 20:37:15 +02:00
dev Adjust function definition in ofw to avoid clang 15 warning 2022-08-11 14:30:32 +01:00
dts sys/dts: Remove MIPS files 2022-05-20 17:11:27 +01:00
fs nullfs(5): Fix a typo in a source code comment 2022-08-07 14:04:53 +02:00
gdb ddb: use _FLAGS command macros where appropriate 2022-07-05 11:56:55 -03:00
geom Adjust g_waitidle() visibility and definition 2022-08-02 21:11:10 +03:00
gnu bwn: eliminate dead writes in BWN_GPL_PHY 2022-05-04 09:32:59 -04:00
i386 AST: rework 2022-08-02 21:11:09 +03:00
isa Adjust function definition in isa's pnp.c to avoid clang 15 warning 2022-07-27 21:13:59 +02:00
kern protosw: retire pr_output method 2022-08-11 09:19:37 -07:00
kgssapi
libkern libkern: Fix a typo in a source code comment 2022-06-05 08:57:26 +02:00
modules modules: if_awg: Add miibus_if.h to the source 2022-08-10 19:25:31 +02:00
net rtsock: subscribe to ifnet eventhandlers instead of direct calls. 2022-08-11 20:36:59 +00:00
net80211 net80211(4): Fix a typo in a source code comment 2022-08-07 16:01:13 +02:00
netgraph Adjust ng_{name,ID}_rehash() definitions to avoid clang 15 warnings 2022-07-25 20:02:31 +02:00
netinet raw ip: merge rip_output() into rip_send() 2022-08-11 09:19:37 -07:00
netinet6 raw ip6: merge rip6_output() into rip6_send() 2022-08-11 09:19:37 -07:00
netipsec keysock: do not use raw socket code 2022-08-11 09:19:36 -07:00
netpfil protosw: retire pr_output method 2022-08-11 09:19:37 -07:00
netsmb
nfs nfs: skip bootpc when vfs.root.mountfrom is other than nfs 2022-05-31 16:07:27 -03:00
nfsclient
nfsserver
nlm
ofed ofed/infiniband: fix ifdefs for new INET changes, fixing LINT-NOIP 2022-07-18 08:02:01 -05:00
opencrypto opencrypto: mark INVARIANTS variables as __diagused 2022-08-10 15:35:29 -04:00
powerpc powerpc/booke: Clamp MAXCPU to 32 for Book-E platforms 2022-08-06 11:42:19 -04:00
riscv AST: rework 2022-08-02 21:11:09 +03:00
rpc Adjust authnone_create() definition to avoid clang 15 warning 2022-07-25 00:40:13 +02:00
security AST: rework 2022-08-02 21:11:09 +03:00
sys protosw: retire pr_output method 2022-08-11 09:19:37 -07:00
teken
tests
tools firmware: Map '@' in filenames to '_' in symbols. 2022-06-14 10:50:51 -07:00
ufs AST: rework 2022-08-02 21:11:09 +03:00
vm vm_fault: Shoot down shared mappings in vm_fault_copy_entry() 2022-08-09 15:44:45 -04:00
x86 x86: Remove redundant parentheses 2022-08-09 09:46:50 +02:00
xdr
xen xenbus: improve device tracking 2022-06-07 12:29:53 +02:00
Makefile