Documentation ¶
Rendered for windows/amd64
Index ¶
Constants ¶
View Source
const ( // After registering a callback with NotifyIPInterfaceChange API, we get an initial notification to confirm that the callback is registered // All other notifications sent on the channel would be positive except this one InitialNotification = math.MinInt16 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InterfaceMonitor ¶
InterfaceMonitor is used for monitoring interface additions InterfaceMonitor can be mocked while unit testing other packages
func NewMonitor ¶
func NewMonitor() InterfaceMonitor
NewMonitor creates a new monitor to implement the interface
type MibIPInterfaceRow ¶
type MibIPInterfaceRow struct { Family uint16 InterfaceLUID uint64 InterfaceIndex uint32 MaxReassemblySize uint32 InterfaceIdentifier uint64 MinRouterAdvertisementInterval uint32 MaxRouterAdvertisementInterval uint32 AdvertisingEnabled bool ForwardingEnabled bool WeakHostSend bool WeakHostReceive bool UseAutomaticMetric bool UseNeighborUnreachabilityDetection bool ManagedAddressConfigurationSupported bool OtherStatefulConfigurationSupported bool AdvertiseDefaultRoute bool RouterDiscoveryBehavior int32 DadTransmits uint32 BaseReachableTime uint32 RetransmitTime uint32 PathMTUDiscoveryTimeout uint32 LinkLocalAddressBehavior int32 LinkLocalAddressTimeout uint32 ZoneIndices [16]uint32 SitePrefixLength uint32 Metric uint32 NLMTU uint32 Connected bool SupportsWakeUpPatterns bool SupportsNeighborDiscovery bool SupportsRouterDiscovery bool ReachableTime uint32 TransmitOffload uint8 ReceiveOffload uint8 DisableDefaultRoutes bool // contains filtered or unexported fields }
MibIPInterfaceRow is the implementation of Mib_IPInterface_Row struct of Windows API https://docs.microsoft.com/en-us/windows/desktop/api/netioapi/ns-netioapi-_mib_ipinterface_row
Source Files ¶
Click to show internal directories.
Click to hide internal directories.