Documentation ¶
Index ¶
- func Inet_aton(ip string, isBig bool) uint32
- func Inet_ntoa(ipnr uint32, isBig bool) string
- func MustResolveInterface(gatewayAddress net.IP) net.Interface
- func ResolveInterface(gatewayAddress net.IP) (net.Interface, error)
- type DynamicMemory
- type IPForwardRow
- type IPInterfaceEntry
- type InterfaceOffloadRod
- type NetRoute
- func (r *NetRoute) AddRoute(route *IPForwardRow) error
- func (r *NetRoute) Close()
- func (r *NetRoute) DeleteRoute(route *IPForwardRow) error
- func (r *NetRoute) GetInterfaceByIndex(index uint32) (*IPInterfaceEntry, error)
- func (r *NetRoute) GetRoutes() ([]IPForwardRow, error)
- func (r *NetRoute) UpdateRoute(route *IPForwardRow) error
- type SliceHeader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DynamicMemory ¶
type DynamicMemory struct {
// contains filtered or unexported fields
}
func (*DynamicMemory) Address ¶
func (d *DynamicMemory) Address() uintptr
func (*DynamicMemory) Len ¶
func (d *DynamicMemory) Len() uint32
type IPForwardRow ¶
type IPForwardRow struct { ForwardDest uint32 ForwardMask uint32 ForwardPolicy uint32 ForwardNextHop uint32 ForwardIfIndex uint32 ForwardType uint32 ForwardProto uint32 ForwardAge uint32 ForwardNextHopAS uint32 ForwardMetric1 uint32 ForwardMetric2 uint32 ForwardMetric3 uint32 ForwardMetric4 uint32 ForwardMetric5 uint32 }
func (IPForwardRow) Equals ¶
func (t IPForwardRow) Equals(o IPForwardRow) bool
type IPInterfaceEntry ¶
type IPInterfaceEntry struct { Family uint32 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 uint32 DadTransmits uint32 BaseReachableTime uint32 RetransmitTime uint32 PathMtuDiscoveryTimeout uint32 LinkLocalAddressBehavior uint32 LinkLocalAddressTimeout uint32 ZoneIndices [16]uint32 SitePrefixLength uint32 Metric uint32 NlMtu uint32 Connected bool SupportsWakeUpPatterns bool SupportsNeighborDiscovery bool SupportsRouterDiscovery bool ReachableTime uint32 TransmitOffload InterfaceOffloadRod ReceiveOffload InterfaceOffloadRod DisableDefaultRoutes bool }
type InterfaceOffloadRod ¶
type NetRoute ¶
type NetRoute struct {
// contains filtered or unexported fields
}
func NewNetRoute ¶
func NewNetRoute() *NetRoute
func (*NetRoute) AddRoute ¶
func (r *NetRoute) AddRoute(route *IPForwardRow) error
AddRoute adds an IPForwardRow to the routing table.
func (*NetRoute) DeleteRoute ¶
func (r *NetRoute) DeleteRoute(route *IPForwardRow) error
func (*NetRoute) GetInterfaceByIndex ¶
func (r *NetRoute) GetInterfaceByIndex(index uint32) (*IPInterfaceEntry, error)
func (*NetRoute) GetRoutes ¶
func (r *NetRoute) GetRoutes() ([]IPForwardRow, error)
func (*NetRoute) UpdateRoute ¶
func (r *NetRoute) UpdateRoute(route *IPForwardRow) error
type SliceHeader ¶
Click to show internal directories.
Click to hide internal directories.