Documentation ¶
Overview ¶
Package addrmon contains the address monitor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RegisterAddrUpdates = func(a *AddrMon) (chan netlink.AddrUpdate, error) { events := make(chan netlink.AddrUpdate) options := netlink.AddrSubscribeOptions{ ListExisting: true, } if err := netlinkAddrSubscribeWithOptions(events, a.upsDone, options); err != nil { return nil, fmt.Errorf("could not subscribe to address events: %w", err) } return events, nil }
RegisterAddrUpdates registers for addr update events.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.