Home
last modified time | relevance | path

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

12

/external/python/cpython3/Lib/test/
Dtest_ipaddress.py13 import ipaddress
58 return self.assertCleanError(ipaddress.AddressValueError,
63 return self.assertCleanError(ipaddress.NetmaskValueError,
171 factory = ipaddress.IPv4Address
176 ipaddress.IPv4Address(addr)
181 ipaddress.IPv4Address(addr)
211 ipaddress.IPv4Address(addr)
220 ipaddress.IPv4Address(addr)
236 ipaddress.IPv4Address(addr)
245 ipaddress.IPv4Address(addr)
[all …]
/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 …]
Dindex.rst29 ipaddress.rst
/external/python/cpython3/Doc/tools/
Dsusp-ignored.csv52 howto/ipaddress,,:DB8,>>> ipaddress.ip_address('2001:DB8::1')
53 howto/ipaddress,,::,>>> ipaddress.ip_address('2001:DB8::1')
54 howto/ipaddress,,:db8,IPv6Address('2001:db8::1')
55 howto/ipaddress,,::,IPv6Address('2001:db8::1')
56 howto/ipaddress,,::,IPv6Address('::1')
57 howto/ipaddress,,:db8,>>> ipaddress.ip_network('2001:db8::0/96')
58 howto/ipaddress,,::,>>> ipaddress.ip_network('2001:db8::0/96')
59 howto/ipaddress,,:db8,IPv6Network('2001:db8::/96')
60 howto/ipaddress,,::,IPv6Network('2001:db8::/96')
61 howto/ipaddress,,:db8,IPv6Network('2001:db8::/128')
[all …]
/external/autotest/frontend/afe/
Dmoblab_rpc_interface.py588 ipaddress = lease.split('\n')[0].strip(' {')
589 last_octet = int(ipaddress.split('.')[-1].strip())
594 leases[ipaddress] = mac_address_search.group(1)
653 def add_moblab_dut(ipaddress): argument
660 cmd = '/usr/local/autotest/cli/atest host create %s &' % ipaddress
662 return (True, 'DUT %s added to Autotest' % ipaddress)
666 def remove_moblab_dut(ipaddress): argument
673 models.Host.smart_get(ipaddress).delete()
674 return (True, 'DUT %s deleted from Autotest' % ipaddress)
678 def add_moblab_label(ipaddress, label_name): argument
[all …]
/external/curl/tests/unit/
Dunit1609.c160 char ipaddress[MAX_IPADR_LEN] = {0}; variable
166 ipaddress, &port)) {
176 __FILE__, __LINE__, i, ipaddress, i, j);
189 if(!curl_strequal(ipaddress, tests[i].address[j])) {
192 __FILE__, __LINE__, i, ipaddress, i, j, tests[i].address[j]);
Dunit1607.c158 char ipaddress[MAX_IPADR_LEN] = {0}; variable
167 ipaddress, &port)) {
177 __FILE__, __LINE__, i, ipaddress, i, j);
190 if(!curl_strequal(ipaddress, tests[i].address[j])) {
193 __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 …]
Dinternet.rst48 ipaddress.rst
/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/webrtc/webrtc/base/
Difaddrs_converter.h32 InterfaceAddress* ipaddress,
DBUILD.gn248 "ipaddress.cc",
249 "ipaddress.h",
Dbase.gyp231 'ipaddress.cc',
232 'ipaddress.h',
/external/curl/lib/
Dconnect.c845 char ipaddress[MAX_IPADR_LEN]; in Curl_is_connected() local
847 Curl_printable_address(conn->tempaddr[i], ipaddress, MAX_IPADR_LEN); in Curl_is_connected()
849 ipaddress, conn->port, in Curl_is_connected()
1005 char ipaddress[MAX_IPADR_LEN]; in singleipconnect() local
1024 ipaddress, &port)) { in singleipconnect()
1031 infof(data, " Trying %s...\n", ipaddress); in singleipconnect()
1163 ipaddress, Curl_strerror(error, buffer, sizeof(buffer))); in singleipconnect()
/external/iproute2/ip/
DAndroid.bp8 "ipaddress.c",
DMakefile1 IPOBJ=ip.o ipaddress.o ipaddrlabel.o iproute.o iprule.o ipnetns.o \
/external/python/cpython3/Doc/whatsnew/
D3.5.rst1335 ipaddress section in Improved Modules
1338 Both the :class:`~ipaddress.IPv4Network` and :class:`~ipaddress.IPv6Network` classes
1342 >>> import ipaddress
1343 >>> ipaddress.IPv4Network(('127.0.0.0', 8))
1345 >>> ipaddress.IPv4Network(('127.0.0.0', '255.0.0.0'))
1350 A new :attr:`~ipaddress.IPv4Network.reverse_pointer` attribute for the
1351 :class:`~ipaddress.IPv4Network` and :class:`~ipaddress.IPv6Network` classes
1354 >>> import ipaddress
1355 >>> addr = ipaddress.IPv4Address('127.0.0.1')
1358 >>> addr6 = ipaddress.IPv6Address('::1')
[all …]
/external/python/cpython3/Misc/NEWS.d/
D3.7.0b3.rst287 Fix a regression in :mod:`ipaddress` that result of :meth:`hosts` is empty
408 Documentation changes for ipaddress. Patch by Jon Foster and Berker Peksag.
D3.5.0a1.rst690 Add ipaddress.reverse_pointer. Patch by Leon Weber.
893 Fixed bugs in the comparison of ipaddress classes.
932 Pickling of ipaddress objects now produces more compact and portable
951 Much faster implementation of ipaddress.collapse_addresses() when there are
3567 Optimize ipaddress.collapse_addresses().
3576 Optimize ipaddress.summarize_address_range() and
3577 ipaddress.{IPv4Network,IPv6Network}.subnets().
3586 Optimize parsing of netmasks in ipaddress.IPv4Network and
3587 ipaddress.IPv6Network.
3654 ipaddress.IPv4Network and ipaddress.IPv6Network now accept an (address,
[all …]
D3.6.6rc1.rst438 Fix a regression in :mod:`ipaddress` that result of :meth:`hosts` is empty
585 Documentation changes for ipaddress. Patch by Jon Foster and Berker Peksag.
D3.7.0b2.rst229 ipaddress module for wildcard and IP addresses. Error reporting for invalid
D3.7.0a3.rst937 :class:`ipaddress.IPv6Network` and :class:`ipaddress.IPv4Network`. Patch by
D3.6.2rc1.rst212 Fixed comparison check for ipaddress.ip_interface objects. Patch by Sanjay
D3.5.4rc1.rst353 Fixed comparison check for ipaddress.ip_interface objects. Patch by Sanjay

12