networking

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertIPv4ToUint32

func ConvertIPv4ToUint32(ip net.IP) uint32

ConvertIPv4ToUint32 converts an IPv4 net.IP to a uint32 FIXME: this does nothing to protect the caller from bad input yet

func ConvertUint32ToIPv4

func ConvertUint32ToIPv4(i uint32) net.IP

ConvertUint32ToIPv4 converts an IPv4 net.IP to a uint32 FIXME: this does nothing to protect the caller from bad input yet

func GetIPRangeStr

func GetIPRangeStr(ip1, ip2 net.IP) string

GetIPRangeStr provides a string range of IP address given two net.IPs. For example, "192.168.1.240-192.168.1.250".

Types

This section is empty.

Jump to

Keyboard shortcuts

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