iphelperwrapper

package
v0.0.0-...-b702281 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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

type InterfaceMonitor interface {
	Start(notification chan int) error
	Close() error
}

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

Directories

Path Synopsis
Package mock_iphelperwrapper is a generated GoMock package.
Package mock_iphelperwrapper is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL