netlink: add func AddrSubscribe on darwin

This commit is contained in:
rkonfj
2024-07-18 22:12:48 +08:00
parent a9063a8ba8
commit 074c53fb2b
2 changed files with 92 additions and 0 deletions

9
netlink/addr.go Normal file
View File

@@ -0,0 +1,9 @@
package netlink
import "net"
type AddrUpdate struct {
New bool
Addr net.IPNet
LinkIndex int
}