Home
last modified time | relevance | path

Searched refs:ipaddr (Results 1 – 25 of 120) sorted by relevance

12345

/external/chromium-trace/catapult/telemetry/third_party/web-page-replay/third_party/ipaddr/
Dipaddr_test.py23 import ipaddr
26 if issubclass(ipaddr.Bytes, str):
27 _cb = ipaddr.Bytes
34 self.ipv4 = ipaddr.IPv4Network('1.2.3.4/24')
35 self.ipv4_hostmask = ipaddr.IPv4Network('10.0.0.1/0.255.255.255')
36 self.ipv6 = ipaddr.IPv6Network('2001:658:22a:cafe:200:0:0:1/64')
46 repr(ipaddr.IPv4Network('1.2.3.4')))
48 repr(ipaddr.IPv6Network('::1')))
51 addr1 = ipaddr.IPv4Network('1.1.1.255/24')
52 addr1_masked = ipaddr.IPv4Network('1.1.1.0/24')
[all …]
DREADME.web-page-replay2 Short Name: ipaddr-py
3 URL: https://code.google.com/p/ipaddr-py/
4 Version: 2.1.10 (ipaddr.__version__)
DREADME1 ipaddr.py is a library for working with IP addresses, both IPv4 and IPv6.
4 Project home page: http://code.google.com/p/ipaddr-py/
6 Please send contributions to ipaddr-py-dev@googlegroups.com. Code should
Dsetup.py19 import ipaddr
25 version=ipaddr.__version__,
/external/iproute2/ip/
Difcfg67 ipaddr=
70 ipaddr=${1%/*}
71 if [ "$1" != "$ipaddr" ]; then
74 if [ "$ipaddr" = "" ]; then
87 pfx="$ipaddr peer $peer"
89 if [ "$ipaddr" = "" ]; then
94 ABCMaskLen $ipaddr
97 pfx="$ipaddr/$pfxlen"
100 if [ "$ldev" = "$dev" -a "$ipaddr" != "" ]; then
115 if [ "$ipaddr" = "" ]; then exit 0; fi
[all …]
/external/openssh/
Dauth-rhosts.c56 const char *ipaddr, const char *client_user, in check_rhosts_file() argument
152 !innetgr(host + 1, ipaddr, NULL, NULL)) in check_rhosts_file()
155 strcmp(host, ipaddr) != 0) in check_rhosts_file()
192 const char *hostname, *ipaddr; in auth_rhosts() local
195 ipaddr = get_remote_ipaddr(); in auth_rhosts()
196 return auth_rhosts2(pw, client_user, hostname, ipaddr); in auth_rhosts()
201 const char *ipaddr) in auth_rhosts2_raw() argument
209 client_user, hostname, ipaddr); in auth_rhosts2_raw()
248 if (check_rhosts_file(_PATH_RHOSTS_EQUIV, hostname, ipaddr, in auth_rhosts2_raw()
251 "/etc/hosts.equiv.", hostname, ipaddr); in auth_rhosts2_raw()
[all …]
Dauth2-hostbased.c163 const char *resolvedname, *ipaddr, *lookup, *reason; in hostbased_key_allowed() local
172 ipaddr = get_remote_ipaddr(); in hostbased_key_allowed()
175 chost, resolvedname, ipaddr); in hostbased_key_allowed()
194 chost, ipaddr, resolvedname); in hostbased_key_allowed()
195 if (auth_rhosts2(pw, cuser, resolvedname, ipaddr) == 0) { in hostbased_key_allowed()
198 __func__, cuser, resolvedname, ipaddr); in hostbased_key_allowed()
Dmatch.c189 match_host_and_ip(const char *host, const char *ipaddr, in match_host_and_ip() argument
195 if ((mip = addr_match_list(ipaddr, patterns)) == -2) in match_host_and_ip()
213 match_user(const char *user, const char *host, const char *ipaddr, in match_user() argument
227 ret = match_host_and_ip(host, ipaddr, p); in match_user()
/external/webrtc/webrtc/base/
Dsocketaddress_unittest.cc39 EXPECT_EQ(IPAddress(), addr.ipaddr()); in TEST()
47 EXPECT_EQ(IPAddress(0x01020304U), addr.ipaddr()); in TEST()
56 EXPECT_EQ(IPAddress(0x01020304U), addr.ipaddr()); in TEST()
67 EXPECT_EQ(tocheck, addr2.ipaddr()); in TEST()
77 EXPECT_EQ(IPAddress(0xFFFFFFFFU), addr.ipaddr()); in TEST()
86 EXPECT_EQ(IPAddress(), addr.ipaddr()); in TEST()
96 EXPECT_EQ(IPAddress(0x01020304U), addr.ipaddr()); in TEST()
107 EXPECT_EQ(IPAddress(0x01020304U), addr.ipaddr()); in TEST()
118 EXPECT_EQ(IPAddress(0x01020304U), addr.ipaddr()); in TEST()
129 EXPECT_EQ(IPAddress(0x01020304U), addr.ipaddr()); in TEST()
[all …]
Dfakenetwork.h50 address.SetResolvedIP(iface.ipaddr()); in AddInterface()
96 if (it->first.ipaddr().family() == AF_INET) { in DoUpdateNetworks()
98 } else if (it->first.ipaddr().family() == AF_INET6) { in DoUpdateNetworks()
101 IPAddress prefix = TruncateIP(it->first.ipaddr(), prefix_length); in DoUpdateNetworks()
106 net->AddIP(it->first.ipaddr()); in DoUpdateNetworks()
Dvirtualsocketserver.cc437 if (addr.ipaddr().family() == AF_INET) { in InitiateConnect()
439 } else if (addr.ipaddr().family() == AF_INET6) { in InitiateConnect()
475 local_addr_ = EmptySocketAddressWithFamily(addr.ipaddr().family()); in SendUdp()
630 ASSERT(!IPIsUnspec(addr.ipaddr())); in Bind()
634 SocketAddress normalized(addr.ipaddr().Normalized(), addr.port()); in Bind()
643 if (!IPIsUnspec(addr->ipaddr())) { in Bind()
644 addr->SetIP(addr->ipaddr().Normalized()); in Bind()
662 SocketAddress normalized(addr.ipaddr().Normalized(), in LookupBinding()
669 IPAddress default_ip = GetDefaultRoute(addr.ipaddr().family()); in LookupBinding()
670 if (!IPIsUnspec(default_ip) && addr.ipaddr() == default_ip) { in LookupBinding()
[all …]
Dnatserver.cc48 h ^= HashIP(a.ipaddr()); in operator ()()
56 if (use_ip && (a1.ipaddr() < a2.ipaddr())) in operator ()()
58 if (use_ip && (a2.ipaddr() < a1.ipaddr())) in operator ()()
130 : external_(external), external_ip_(external_ip.ipaddr(), 0) { in NATServer()
/external/chromium-trace/catapult/third_party/gsutil/third_party/socksipy-branch/
Dsocks.py210 ipaddr = socket.inet_aton(destaddr)
211 req = req + chr(0x01).encode() + ipaddr
216 ipaddr = None
220 ipaddr = socket.inet_aton(socket.gethostbyname(destaddr))
221 req = req + chr(0x01).encode() + ipaddr
247 if ipaddr != None:
248 self.__proxypeername = (socket.inet_ntoa(ipaddr), destport)
278 ipaddr = socket.inet_aton(destaddr)
282 ipaddr = struct.pack("BBBB", 0x00, 0x00, 0x00, 0x01)
285 ipaddr = socket.inet_aton(socket.gethostbyname(destaddr))
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/httplib2/python2/httplib2/
Dsocks.py249 ipaddr = socket.inet_aton(destaddr)
250 req = req + chr(0x01).encode() + ipaddr
255 ipaddr = None
259 ipaddr = socket.inet_aton(socket.gethostbyname(destaddr))
260 req = req + chr(0x01).encode() + ipaddr
286 if ipaddr != None:
287 self.__proxypeername = (socket.inet_ntoa(ipaddr), destport)
317 ipaddr = socket.inet_aton(destaddr)
321 ipaddr = struct.pack("BBBB", 0x00, 0x00, 0x00, 0x01)
324 ipaddr = socket.inet_aton(socket.gethostbyname(destaddr))
[all …]
/external/ppp/pppd/plugins/radius/etc/
Ddictionary.compat4 ATTRIBUTE Client-Id 4 ipaddr
7 ATTRIBUTE Framed-Address 8 ipaddr
8 ATTRIBUTE Framed-Netmask 9 ipaddr
10 ATTRIBUTE Login-Host 14 ipaddr
28 ATTRIBUTE Login-Host 14 ipaddr
/external/wpa_supplicant_8/wpa_supplicant/examples/
Dp2p-action.sh44 ipaddr=`echo "$*" | sed 's/.* ip_addr=\([^ ]*\).*/\1/'`
47 if echo "$ipaddr$ipmask$goipaddr" | grep -q ' '; then
48 ipaddr=""
52 if [ -n "$ipaddr" ]; then
53 sudo ifconfig $GIFNAME "$ipaddr" netmask "$ipmask"
/external/wpa_supplicant_8/src/ap/
Ddhcp_snoop.c127 if (sta->ipaddr == b->your_ip) in handle_dhcp()
130 if (sta->ipaddr != 0) { in handle_dhcp()
133 ipaddr_str(be_to_host32(sta->ipaddr))); in handle_dhcp()
135 (u8 *) &sta->ipaddr); in handle_dhcp()
146 sta->ipaddr = b->your_ip; in handle_dhcp()
/external/webrtc/webrtc/p2p/client/
Dportallocator_unittest.cc133 vss_->SetDefaultRoute(addr.ipaddr()); in AddInterfaceAsDefaultRoute()
222 c.protocol() == proto && c.address().ipaddr() == addr.ipaddr() && in CheckCandidate()
269 network_manager_.set_default_local_addresses(kPrivateAddr.ipaddr(), in CheckDisableAdapterEnumeration()
285 rtc::SocketAddress(kPrivateAddr.ipaddr(), 0)); in CheckDisableAdapterEnumeration()
298 candidates_[total_candidates].related_address().ipaddr()); in CheckDisableAdapterEnumeration()
306 candidates_[total_candidates].related_address().ipaddr()); in CheckDisableAdapterEnumeration()
314 candidates_[total_candidates].related_address().ipaddr()); in CheckDisableAdapterEnumeration()
359 rtc::SocketAddress(kNatUdpAddr.ipaddr(), 0))); in ResetWithStunServer()
681 CheckDisableAdapterEnumeration(5U, kPrivateAddr.ipaddr(), in TEST_F()
682 kNatUdpAddr.ipaddr(), kTurnUdpExtAddr.ipaddr(), in TEST_F()
[all …]
/external/webrtc/webrtc/p2p/base/
Dstunserver_unittest.cc93 if (mapped_addr->ipaddr() != client_addr.ipaddr()) { in TEST_F()
95 << mapped_addr->ipaddr() in TEST_F()
96 << ") != local IP (" << client_addr.ipaddr() in TEST_F()
Dstun_unittest.cc49 in_addr stun_address = addr->ipaddr().ipv4_address(); in CheckStunAddressAttribute()
53 in6_addr stun_address = addr->ipaddr().ipv6_address(); in CheckStunAddressAttribute()
736 addr2.SetIP(addr->ipaddr()); in TEST_F()
740 ASSERT_EQ(addr2.ipaddr(), addr->ipaddr()); in TEST_F()
751 ASSERT_NE(addr->ipaddr(), addr2.ipaddr()); in TEST_F()
752 addr2.SetIP(addr->ipaddr()); in TEST_F()
756 ASSERT_EQ(addr2.ipaddr(), addr->ipaddr()); in TEST_F()
783 addr2.SetIP(addr->ipaddr()); in TEST_F()
787 ASSERT_EQ(addr2.ipaddr(), addr->ipaddr()); in TEST_F()
799 ASSERT_EQ(addr->ipaddr(), addr2.ipaddr()); in TEST_F()
[all …]
Drelayserver_unittest.cc169 attr->SetIP(addr.ipaddr()); in AddDestinationAttr()
248 EXPECT_EQ(server_ext_addr.ipaddr(), mapped_addr->ipaddr()); in TEST_F()
278 EXPECT_EQ(server_ext_addr.ipaddr(), mapped_addr->ipaddr()); in TEST_F()
315 EXPECT_EQ(client2_addr.ipaddr(), src_addr->ipaddr()); in TEST_F()
483 EXPECT_EQ(client2_addr.ipaddr(), src_addr->ipaddr()); in TEST_F()
/external/selinux/secilc/docs/
Dcil_network_labeling_statements.md4 ipaddr section in Network Labeling Statements
17 (ipaddr ipaddr_id ip_address)
28 <td align="left"><p><code>ipaddr</code></p></td>
29 <td align="left"><p>The <code>ipaddr</code> keyword.</p></td>
46 (ipaddr netmask_1 255.255.255.0)
51 (macro build_nodecon ((ipaddr ARG1) (ipaddr ARG2))
128 <td align="left"><p>A previously declared <code>ipaddr</code> identifier, or an anonymous IPv4 or I…
132 <td align="left"><p>A previously declared <code>ipaddr</code> identifier, or an anonymous IPv4 or I…
148 (ipaddr netmask_1 255.255.255.0)
149 (ipaddr ipv4_1 192.168.1.64)
/external/selinux/libsepol/cil/test/integration_testing/
Dnonmls.cil24 (ipaddr ip_v4 192.25.35.200)
25 (ipaddr netmask 192.168.1.1)
26 (ipaddr ip_v6 2001:0DB8:AC10:FE01::)
27 (ipaddr netmask_v6 2001:0DE0:DA88:2222::)
Dmls_policy.cil48 (ipaddr ip_v4 192.25.35.200)
49 (ipaddr netmask 192.168.1.1)
50 (ipaddr ip_v6 2001:0DB8:AC10:FE01::)
51 (ipaddr netmask_v6 2001:0DE0:DA88:2222::)
/external/toybox/toys/pending/
Ddhcp.c142 struct in_addr ipaddr; member
182 struct in_addr ipaddr; member
511 if (res->ipaddr.s_addr) { in fill_envp()
512 temp.s_addr = htonl(res->ipaddr.s_addr); in fill_envp()
876 static uint8_t *dhcpc_addreqipaddr(struct in_addr *ipaddr, uint8_t *optptr) in dhcpc_addreqipaddr() argument
880 memcpy(optptr, &ipaddr->s_addr, 4); in dhcpc_addreqipaddr()
1023 if (state->status == STATE_RENEWING) memcpy(&state->pdhcp.ciaddr, &state->ipaddr.s_addr, 4); in dhcpc_sendmsg()
1027 pend = dhcpc_addreqipaddr(&state->ipaddr, pend); in dhcpc_sendmsg()
1037 memcpy(&state->pdhcp.ciaddr, &state->ipaddr.s_addr, 4); in dhcpc_sendmsg()
1199 memcpy(&presult->ipaddr.s_addr, &state->pdhcp.yiaddr, 4); in dhcpc_parsemsg()
[all …]

12345