Documentation
¶
Overview ¶
Package netmon is responsible for monitoring network link and IP address changes via netlink and publishing them as pubsub events.
It starts after nmon and waits for node.StatusData.GetByNode(t.localhost) to return a non-nil and non-zero value before starting the netlink listener.
The netlink monitor subscribes to RTMGRP_LINK, RTMGRP_IPV4_IFADDR, and RTMGRP_IPV6_IFADDR groups to receive real-time notifications of link and address changes, equivalent to "ip monitor link address label".
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLocalIPs ¶
GetLocalIPs returns all non-loopback IP addresses assigned to the local node
Types ¶
Click to show internal directories.
Click to hide internal directories.