Index
Modules:
iputils
,
iputils/cidr
,
iputils/ipv4
,
iputils/ipv6
.
API symbols
`$`:
cidr: `$`(cidr: Cidr4 | Cidr6): string
ipv4: `$`(ip: Ipv4): string
ipv6: `$`(ip: Ipv6): string
Cidr4:
cidr: Cidr4
Cidr6:
cidr: Cidr6
cidrContainIpv4:
cidr: cidrContainIpv4(ip: Ipv4): Cidr4
cidrContainIpv6:
cidr: cidrContainIpv6(ip: Ipv6): Cidr6
cidrToIpv4Range:
cidr: cidrToIpv4Range(cidr: Cidr4): tuple[startIp, endIp: Ipv4]
cidrToIpv6Range:
cidr: cidrToIpv6Range(cidr: Cidr6): tuple[startIp, endIp: Ipv6]
cidrToString:
cidr: cidrToString(cidr: Cidr4 | Cidr6): string
cmp:
ipv4: cmp(a, b: Ipv4): int
ipv6: cmp(a, b: Ipv6): int
contains:
cidr: contains(cidr: Cidr4; ip: Ipv4): bool
cidr: contains(cidr: Cidr6; ip: Ipv6): bool
Ipv4:
ipv4: Ipv4
ipv4RangeToCidr:
cidr: ipv4RangeToCidr(startIp, endIp: Ipv4): seq[Cidr4]
ipv4ToString:
ipv4: ipv4ToString(ip: Ipv4): string
ipv4ToUInt32:
ipv4: ipv4ToUInt32(ip: Ipv4): uint32
Ipv6:
ipv6: Ipv6
Ipv6Compressed:
Ipv6Mode.Ipv6Compressed
Ipv6Expanded:
Ipv6Mode.Ipv6Expanded
Ipv6LeadingZeros:
Ipv6Mode.Ipv6LeadingZeros
Ipv6Mode:
ipv6: Ipv6Mode
ipv6RangeToCidr:
cidr: ipv6RangeToCidr(startIp, endIp: Ipv6): seq[Cidr6]
ipv6ToString:
ipv6: ipv6ToString(ip: Ipv6; mode: Ipv6Mode = Ipv6Compressed): string
isIpv4:
ipv4: isIpv4(ip: string): bool
isIpv4AndStore:
ipv4: isIpv4AndStore(ip: string; stored: var Ipv4): bool
isIpv6:
ipv6: isIpv6(ip: string): bool
isIpv6AndStore:
ipv6: isIpv6AndStore(ip: string; stored: var Ipv6): bool
listAllCidrContainIpv4:
cidr: listAllCidrContainIpv4(ip: Ipv4): seq[Cidr4]
listAllCidrContainIpv6:
cidr: listAllCidrContainIpv6(ip: Ipv6): seq[Cidr6]
parseIpv4:
ipv4: parseIpv4(ip: string): Ipv4
parseIpv6:
ipv6: parseIpv6(ip: string): Ipv6
uint32ToIpv4:
ipv4: uint32ToIpv4(ip: uint32): Ipv4