Lines Matching refs:ipaddress
9 import ipaddress
205 return int(ipaddress.IPv4Address(ip)), int(ipaddress.IPv4Address(mask))
215 mask = ipaddress.IPv6Network("::/" + mask).hostmask
217 return ipaddress.IPv6Address(ip).packed, ipaddress.IPv6Address(mask).packed
1096 lambda x: str(ipaddress.IPv4Address(x)),
1103 lambda x: str(ipaddress.IPv4Address(x)),
1150 lambda x: str(ipaddress.IPv6Address(x)),
1151 lambda x: ipaddress.IPv6Address(x).packed if x else 0,
1157 lambda x: str(ipaddress.IPv6Address(x)),
1158 lambda x: ipaddress.IPv6Address(x).packed if x else 0,
1305 lambda x: str(ipaddress.IPv4Address(x)),
1312 lambda x: str(ipaddress.IPv4Address(x)),
1362 lambda x: str(ipaddress.IPv6Address(x)),
1400 lambda x: str(ipaddress.IPv4Address(x)),
1407 lambda x: str(ipaddress.IPv4Address(x)),
1447 lambda x: str(ipaddress.IPv6Address(x)),
1453 lambda x: str(ipaddress.IPv6Address(x)),