Documentation
¶
Index ¶
- Variables
- func CalculateBcast(ip, netmask string) string
- func ConvertMaskDotStringToBits(netmask string) (int, int)
- func ConvertMaskHexToDotString(hexMask net.IPMask) string
- func GetIfaceAddr(name string) (net.Addr, error)
- func GetLocalBridges() (installedBridges []string, err error)
- func HexToDec(hexMask string, base int) (int, bool)
- func ParseInterfacesRH() (map[string]map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorNoIpv4 = errors.New("no IPv4 address")
Functions ¶
func CalculateBcast ¶
CalculateBcast Gets strings (ip and netmask) Returns a string representing broadcast address
func ConvertMaskDotStringToBits ¶
ConvertMaskDotStringToBits converts decimal mask (255.255.0.0 for example) to net.IPMask and returns once and bits of the mask
func ConvertMaskHexToDotString ¶
ConvertMaskHexToDotString converts a subnet mask from hexadecimal to a decimal form
func GetIfaceAddr ¶
Return the IPv4 address of a network interface
func GetLocalBridges ¶
GetLocalBridges finds bridges installed on the local system Returns a slice containing bridges names and error/nil
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.