Documentation ¶
Index ¶
- Constants
- Variables
- func CalcIPv4Network(ip string, masklen int64) string
- func IPv4ToInt(ip string) (intip uint64)
- func IntIPv4ToStr(intip uint64) (ip string)
- func IsIPv4(ip string) bool
- func IsPrivate(ip string) bool
- func MadAddressSplit(mac string, deli string) string
- func NetmaskToBitlen(netmask string) int
- func ReverseIPv4(ip string) string
- func ReverseIPv4Int(intip int64) string
Constants ¶
View Source
const ( DelimiterDash = "-" DelimiterColon = ":" )
Variables ¶
View Source
var (
NetPrivate = []string{
"10.0.0.0/8",
"172.16.0.0/12",
"192.168.0.0/16",
}
)
Functions ¶
func CalcIPv4Network ¶
func MadAddressSplit ¶
func NetmaskToBitlen ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.