win

package
v0.0.0-...-7897c6d Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SyscallOnlyReturnError

func SyscallOnlyReturnError(trap uintptr, args ...uintptr) error

Types

type MibUnicastIPAddressRow

type MibUnicastIPAddressRow struct {
	Address            SockAddrInet
	InterfaceLUID      uint64
	InterfaceIndex     uint32
	PrefixOrigin       uint32
	SuffixOrigin       uint32
	ValidLifetime      uint32
	PreferredLifetime  uint32
	OnLinkPrefixLength uint8
	SkipAsSource       bool
	DadState           NLDadState
	ScopeID            uint32
	CreationTimeStamp  int64
}

MibUnicastIPAddressRow structure stores information about a unicast IP address. https://learn.microsoft.com/en-us/windows/win32/api/netioapi/ns-netioapi-mib_unicastipaddress_row

func (*MibUnicastIPAddressRow) Delete

func (m *MibUnicastIPAddressRow) Delete() error

func (*MibUnicastIPAddressRow) Init

func (m *MibUnicastIPAddressRow) Init() error

type MibUnicastIPAddressTable

type MibUnicastIPAddressTable struct {
	NumEntries uint32
	Table      [1]MibUnicastIPAddressRow
}

func (*MibUnicastIPAddressTable) Free

func (m *MibUnicastIPAddressTable) Free()

func (*MibUnicastIPAddressTable) Init

func (m *MibUnicastIPAddressTable) Init() error

func (*MibUnicastIPAddressTable) Rows

type NLDadState

type NLDadState uint32
const (
	NldsInvalid NLDadState = iota
	NldsTentative
	NldsDuplicate
	NldsDeprecated
	NldsPreferred
)

type NetItf

type NetItf uint64

NetItf represents the network interface UUID of windows.

func (NetItf) AddIPAddress

func (i NetItf) AddIPAddress(address netip.Prefix) error

func (NetItf) FlushAddress

func (i NetItf) FlushAddress() error

type SockAddrInet

type SockAddrInet struct {
	Family uint16
	// contains filtered or unexported fields
}

func (*SockAddrInet) SetAddrPort

func (s *SockAddrInet) SetAddrPort(ap netip.AddrPort) error

Jump to

Keyboard shortcuts

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