Documentation ¶
Index ¶
- Constants
- func CompareIPs(left, right net.IP) bool
- func CopyIP(ip net.IP) net.IP
- func DecrementIP(ip net.IP)
- func GetMyIP() (net.IP, error)
- func IncrementIP(ip net.IP)
- func InvertIP(input net.IP)
- func ShrinkIP(netIP net.IP) net.IP
- type DefaultRouteInfo
- type ResolverConfiguration
- type RouteEntry
- type RouteTable
Constants ¶
View Source
const ( RouteFlagUp = 1 << iota RouteFlagGateway RouteFlagHost )
Variables ¶
This section is empty.
Functions ¶
func CompareIPs ¶
CompareIPs returns true if the left IP is less than the right IP, else false.
func DecrementIP ¶
func IncrementIP ¶
Types ¶
type DefaultRouteInfo ¶
func GetDefaultRoute ¶
func GetDefaultRoute() (*DefaultRouteInfo, error)
type ResolverConfiguration ¶
func GetResolverConfiguration ¶
func GetResolverConfiguration() (*ResolverConfiguration, error)
type RouteEntry ¶
type RouteTable ¶
type RouteTable struct { DefaultRoute *DefaultRouteInfo RouteEntries []*RouteEntry }
func GetRouteTable ¶
func GetRouteTable() (*RouteTable, error)
Click to show internal directories.
Click to hide internal directories.