Home
last modified time | relevance | path

Searched refs:ipaddress (Results 1 – 25 of 57) sorted by relevance

123

/external/python/cpython3/Lib/test/
Dtest_ipaddress.py12 import ipaddress
58 return self.assertCleanError(ipaddress.AddressValueError,
63 return self.assertCleanError(ipaddress.NetmaskValueError,
183 factory = ipaddress.IPv4Address
186 v4 = ipaddress.IPv4Address("1.2.3.42")
213 ipaddress.IPv4Address(addr)
218 ipaddress.IPv4Address(addr)
248 ipaddress.IPv4Address(addr)
257 ipaddress.IPv4Address(addr)
273 ipaddress.IPv4Address(addr)
[all …]
/external/python/ipaddress/
Dtest_ipaddress.py16 import ipaddress
25 _compat_str = ipaddress._compat_str
71 return self.assertCleanError(ipaddress.AddressValueError,
76 return self.assertCleanError(ipaddress.NetmaskValueError,
188 factory = ipaddress.IPv4Address
193 ipaddress.IPv4Address(addr)
198 ipaddress.IPv4Address(addr)
228 ipaddress.IPv4Address(addr)
237 ipaddress.IPv4Address(addr)
253 ipaddress.IPv4Address(addr)
[all …]
DOTHER_BACKPORTS.md1 There are three backports of ipaddress in the wild:
3 phihag/ipaddress ([ipaddress on PyPI](https://pypi.org/project/ipaddress/)):
8 kwi/py2-ipaddress ([py2-ipaddress on PyPI](https://pypi.org/project/py2-ipaddress/))
18 In addition, judging by http://pypi-ranking.info/search/ipaddress/ , this backport has about 5 time…
20ipaddress. As you can see from the above dates, the project has basically never been updated after…
22ipaddress has not been updated for over two years. Sure, it's a backport and thus does not necessi…
26 ipaddress (my backport) replicates the Python 3.3+ experience. It works on Python 2.6, 2.7, 3.2, an…
28 ipaddress.ip_address(u'8.9.10.11')
29 ipaddress.ip_address(b'\x08\x09\x0a\x0b') # packed representation
31 The other backport (py2-ipaddress), however, has decided that bytestrings ought to be treated as if…
[all …]
DREADME.md1 ipaddress chapter
4 Python 3.3+'s [ipaddress](http://docs.python.org/dev/library/ipaddress) for Python 2.6, 2.7, 3.2.
6 This repository tracks the latest version from cpython, e.g. ipaddress from cpython 3.8 as of writi…
12 >>> ipaddress.ip_address('1.2.3.4')
17 >>> ipaddress.ip_address(u'1.2.3.4')
22 >>> ipaddress.ip_address(b'1.2.3.4')
25 File "ipaddress.py", line 163, in ip_address
27 ipaddress.AddressValueError: '1.2.3.4' does not appear to be an IPv4 or IPv6 address. Did you pass …
DREADME1 ipaddress
4 Python 3.3+'s [ipaddress](http://docs.python.org/dev/library/ipaddress) for Python 2.6, 2.7, 3.2.
6 This repository tracks the latest version from cpython, e.g. ipaddress from cpython 3.8 as of writi…
12 >>> ipaddress.ip_address('1.2.3.4')
17 >>> ipaddress.ip_address(u'1.2.3.4')
22 >>> ipaddress.ip_address(b'1.2.3.4')
25 File "ipaddress.py", line 163, in ip_address
27 ipaddress.AddressValueError: '1.2.3.4' does not appear to be an IPv4 or IPv6 address. Did you pass …
DMakefile17 sed -i "s#^\(__version__\s*=\s*'\)[^']*'\$$#\1${VERSION}'#" ipaddress.py
20 git add ipaddress.py setup.py
30 docker build -t ipaddress-python2.6 . -f test-python2.6.Dockerfile
33 docker build -t ipaddress-python2.7 . -f test-python2.7.Dockerfile
36 docker build -t ipaddress-python3.2 . -f test-python3.2.Dockerfile
39 docker build -t ipaddress-python3.3 . -f test-python3.3.Dockerfile
42 rm -rf -- build dist ipaddress.egg-info
DMETADATA1 name: "ipaddress"
2 description: "Port of the 3.3+ ipaddress module to 2.6, 2.7, 3.2"
6 value: "https://pypi.org/project/ipaddress/"
10 value: "https://github.com/phihag/ipaddress"
DAndroid.bp33 name: "py-ipaddress",
36 "ipaddress.py",
D.dockerignore3 ipaddress.egg-info
Dtest-python3.3.Dockerfile4 # docker build -t ipaddress-python3.3 . -f test-python3.3.Dockerfile
Dtest-python2.6.Dockerfile4 # docker build -t ipaddress-python2.6 . -f test-python2.6.Dockerfile
Dtest-python3.2.Dockerfile4 # docker build -t ipaddress-python3.2 . -f test-python3.2.Dockerfile
Dtest-python2.7.Dockerfile4 # docker build -t ipaddress-python2.7 . -f test-python2.7.Dockerfile
/external/python/cpython3/Doc/howto/
Dipaddress.rst3 import ipaddress
8 An introduction to the ipaddress module
17 :mod:`ipaddress` module. It is aimed primarily at users that aren't
19 to network engineers wanting an overview of how :mod:`ipaddress`
26 Since :mod:`ipaddress` is a module for inspecting and manipulating IP addresses,
28 :mod:`ipaddress` to create objects from strings and integers.
52 to use the :func:`ipaddress.ip_address` factory function, which automatically
56 >>> ipaddress.ip_address('192.0.2.1')
58 >>> ipaddress.ip_address('2001:DB8::1')
64 >>> ipaddress.ip_address(3221225985)
[all …]
/external/python/cpython3/Doc/tools/
Dsusp-ignored.csv53 howto/ipaddress,,:DB8,>>> ipaddress.ip_address('2001:DB8::1')
54 howto/ipaddress,,::,>>> ipaddress.ip_address('2001:DB8::1')
55 howto/ipaddress,,:db8,IPv6Address('2001:db8::1')
56 howto/ipaddress,,::,IPv6Address('2001:db8::1')
57 howto/ipaddress,,::,IPv6Address('::1')
58 howto/ipaddress,,:db8,>>> ipaddress.ip_network('2001:db8::0/96')
59 howto/ipaddress,,::,>>> ipaddress.ip_network('2001:db8::0/96')
60 howto/ipaddress,,:db8,IPv6Network('2001:db8::/96')
61 howto/ipaddress,,::,IPv6Network('2001:db8::/96')
62 howto/ipaddress,,:db8,IPv6Network('2001:db8::/128')
[all …]
/external/autotest/frontend/afe/
Dmoblab_rpc_interface.py586 ipaddress = lease.split('\n')[0].strip(' {')
587 last_octet = int(ipaddress.split('.')[-1].strip())
592 leases[ipaddress] = mac_address_search.group(1)
651 def add_moblab_dut(ipaddress): argument
658 cmd = '/usr/local/autotest/cli/atest host create %s &' % ipaddress
660 return (True, 'DUT %s added to Autotest' % ipaddress)
664 def remove_moblab_dut(ipaddress): argument
671 models.Host.smart_get(ipaddress).delete()
672 return (True, 'DUT %s deleted from Autotest' % ipaddress)
676 def add_moblab_label(ipaddress, label_name): argument
[all …]
/external/curl/tests/unit/
Dunit1609.c151 char ipaddress[MAX_IPADR_LEN] = {0}; variable
157 ipaddress, &port)) {
167 __FILE__, __LINE__, i, ipaddress, i, j);
180 if(!curl_strequal(ipaddress, tests[i].address[j])) {
183 __FILE__, __LINE__, i, ipaddress, i, j, tests[i].address[j]);
Dunit1607.c143 char ipaddress[MAX_IPADR_LEN] = {0}; variable
152 ipaddress, &port)) {
162 __FILE__, __LINE__, i, ipaddress, i, j);
175 if(!curl_strequal(ipaddress, tests[i].address[j])) {
178 __FILE__, __LINE__, i, ipaddress, i, j, tests[i].address[j]);
/external/bcc/src/cc/frontends/p4/test/
DendToEndTest.py33 def __init__(self, ipaddress, ethaddress): argument
36 self.ipaddress = ipaddress
41 return "Endpoint " + str(self.ipaddress)
48 return IPAddress(self.ipaddress)
93 command = ["arp", "-s", str(destination.ipaddress),
152 src.parent, ifname, src.ipaddress , src.prefixlen)
162 dest.ipaddress, dest.prefixlen)
319 ping = ["ping", self.server_endpoint.ipaddress, "-c", "2"]
/external/python/cpython3/Doc/library/
Dipaddress.rst1 :mod:`ipaddress` --- IPv4/IPv6 manipulation library
4 .. module:: ipaddress
9 **Source code:** :source:`Lib/ipaddress.py`
13 :mod:`ipaddress` provides the capabilities to create, manipulate and
23 :ref:`ipaddress-howto`.
29 import ipaddress
30 from ipaddress import (
37 The :mod:`ipaddress` module provides factory functions to conveniently create
48 >>> ipaddress.ip_address('192.168.0.1')
50 >>> ipaddress.ip_address('2001:db8::')
[all …]
/external/autotest/server/site_tests/network_StressServoEthernetPlug/
Dnetwork_StressServoEthernetPlug.py82 ipaddress = None
84 ipaddress = result.groups()[0]
85 eth_dict[iface] = {self.ETH_MAC: hwaddr, self.ETH_IP: ipaddress}
/external/python/cryptography/src/cryptography/x509/
Dgeneral_name.py8 import ipaddress
300 ipaddress.IPv4Address,
301 ipaddress.IPv6Address,
302 ipaddress.IPv4Network,
303 ipaddress.IPv6Network
/external/rust/crates/grpcio-sys/grpc/tools/run_tests/xds_k8s_test_driver/framework/rpc/
Dgrpc_channelz.py18 import ipaddress
78 ip = ipaddress.IPv4Address(tcpip_address.ip_address)
80 ip = ipaddress.IPv6Address(tcpip_address.ip_address)
/external/webrtc/rtc_base/
Difaddrs_converter.h32 InterfaceAddress* ipaddress,
/external/curl/lib/
Dconnect.c951 char ipaddress[MAX_IPADR_LEN]; in Curl_is_connected() local
953 Curl_printable_address(conn->tempaddr[i], ipaddress, in Curl_is_connected()
954 sizeof(ipaddress)); in Curl_is_connected()
956 ipaddress, conn->port, in Curl_is_connected()
1125 char ipaddress[MAX_IPADR_LEN]; in singleipconnect() local
1141 ipaddress, &port)) { in singleipconnect()
1148 infof(data, " Trying %s:%ld...\n", ipaddress, port); in singleipconnect()
1290 ipaddress, Curl_strerror(error, buffer, sizeof(buffer))); in singleipconnect()

123