Documentation
¶
Index ¶
- Constants
- func IPLess(a, b net.IP) bool
- func IPNetMaskLess(a, b *net.IPNet) bool
- func IPv4StrToUint32(ipStr string) uint32
- func IPv4ToUint32(ip net.IP) uint32
- func LastIP(ipNet *net.IPNet) net.IP
- func NextIP(ip net.IP) net.IP
- func PrefixSameLength(start, end net.IP) int
- func SuffixZeroLength(ip net.IP) int
- func Uint32ToIPv4(uip uint32) net.IP
- type IPRange
- type IPRanges
Constants ¶
View Source
const MaxIPv4Uint32 = 4294967295
Variables ¶
This section is empty.
Functions ¶
func IPNetMaskLess ¶
IPNetMaskLess CIDR大小比较 IPv4 < IPv6 ones越大,子网范围越小
func IPv4StrToUint32 ¶
IPv4StrToUint32 IPv4字符串 转换为 uint32 (syntactic sugar)
Types ¶
Click to show internal directories.
Click to hide internal directories.