Add devd event on network iface address add/remove.
Can be used to automate actions on any address change.
Details
Details
- Reviewers
imp - Group Reviewers
network - Commits
- rGa75819461ec7: devctl: add ADDR_ADD and ADDR_DEL devctl event for IFNET
Apply patch, rebuild and reinstall kernel.
Run in terminal1:
cat /var/run/devd.pipe
In terminal2:
ifconfig lan0 alias 192.168.1.1/24
ifconfig lan0 -alias 192.168.1.1
ifconfig lan0 inet6 1111::
Result
terminal1 will produce output:
!system=IFNET subsystem=lan0 type=ADDR_ADD address=192.168.1.1
!system=IFNET subsystem=lan0 type=ADDR_DEL address=192.168.1.1
!system=IFNET subsystem=lan0 type=ADDR_ADD address=1111::
*lan0 must me replaced with real network interface name.
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable