Home
last modified time | relevance | path

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

123456

/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/ltp/testcases/network/multicast/mc_member/
Dmc_member.sh54 local ipaddr=$(tst_ipaddr)
64 mc_member_test -g $GLIST -s 80 -i $ipaddr > $ERRFILE 2>&1 &
70 tst_resm TINFO "Running (1st) member on $ipaddr"
71 mc_member_test -j -g $GLIST -s 30 -i $ipaddr \
77 "$ipaddr"
80 tst_resm TINFO "Running (2nd) member on $ipaddr"
81 mc_member_test -g $GLIST -s 60 -i $ipaddr \
87 "$ipaddr"
96 tst_brkm TFAIL "$agroup NOT joined to $ipaddr"
108 "$ipaddr"
[all …]
/external/webrtc/p2p/base/
Dtcp_port_unittest.cc69 networks_.emplace_back("unittest", "unittest", addr.ipaddr(), 32); in MakeNetwork()
70 networks_.back().AddIP(addr.ipaddr()); in MakeNetwork()
101 ss_->SetAlternativeLocalAddress(kLocalAddr.ipaddr(), local_address.ipaddr()); in TEST_F()
111 ASSERT_EQ(local_address.ipaddr(), in TEST_F()
112 local_port->Candidates()[0].address().ipaddr()); in TEST_F()
123 ss_->SetAlternativeLocalAddress(kLocalAddr.ipaddr(), in TEST_F()
124 kAlternateLocalAddr.ipaddr()); in TEST_F()
144 ss_->SetAlternativeLocalAddress(kLocalAddr.ipaddr(), in TEST_F()
145 kAlternateLocalAddr.ipaddr()); in TEST_F()
150 network->AddIP(kAlternateLocalAddr.ipaddr()); in TEST_F()
[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()
190 const char *ipaddr) in auth_rhosts2() argument
198 client_user, hostname, ipaddr); in auth_rhosts2()
237 if (check_rhosts_file(_PATH_RHOSTS_EQUIV, hostname, ipaddr, in auth_rhosts2()
240 "/etc/hosts.equiv.", hostname, ipaddr); in auth_rhosts2()
243 if (check_rhosts_file(_PATH_SSH_HOSTS_EQUIV, hostname, ipaddr, in auth_rhosts2()
246 "%.100s.", hostname, ipaddr, _PATH_SSH_HOSTS_EQUIV); in auth_rhosts2()
309 if (check_rhosts_file(buf, hostname, ipaddr, in auth_rhosts2()
[all …]
Dmatch.c211 match_host_and_ip(const char *host, const char *ipaddr, in match_host_and_ip() argument
216 if ((mip = addr_match_list(ipaddr, patterns)) == -2) in match_host_and_ip()
218 else if (host == NULL || ipaddr == NULL || mip == -1) in match_host_and_ip()
236 match_user(const char *user, const char *host, const char *ipaddr, in match_user() argument
243 if (user == NULL && host == NULL && ipaddr == NULL) { in match_user()
258 ret = match_host_and_ip(host, ipaddr, p); in match_user()
/external/webrtc/rtc_base/
Dsocket_address_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 …]
Dfake_network.h53 address.SetResolvedIP(iface.ipaddr()); in AddInterface()
105 if (it->first.ipaddr().family() == AF_INET) { in DoUpdateNetworks()
107 } else if (it->first.ipaddr().family() == AF_INET6) { in DoUpdateNetworks()
110 IPAddress prefix = TruncateIP(it->first.ipaddr(), prefix_length); in DoUpdateNetworks()
115 net->AddIP(it->first.ipaddr()); in DoUpdateNetworks()
Dvirtual_socket_server.cc444 if (addr.ipaddr().family() == AF_INET) { in InitiateConnect()
446 } else if (addr.ipaddr().family() == AF_INET6) { in InitiateConnect()
482 local_addr_ = EmptySocketAddressWithFamily(addr.ipaddr().family()); in SendUdp()
678 RTC_DCHECK(!IPIsUnspec(addr.ipaddr())); in Bind()
682 SocketAddress normalized(addr.ipaddr().Normalized(), addr.port()); in Bind()
692 if (!IPIsUnspec(addr->ipaddr())) { in Bind()
693 addr->SetIP(addr->ipaddr().Normalized()); in Bind()
701 auto alternative = alternative_address_mapping_.find(addr->ipaddr()); in Bind()
720 SocketAddress normalized(addr.ipaddr().Normalized(), addr.port()); in LookupBinding()
726 IPAddress default_ip = GetDefaultRoute(addr.ipaddr().family()); in LookupBinding()
[all …]
/external/bcc/examples/networking/neighbor_sharing/
Dtc_neighbor_sharing.py31 wan_if = self._create_ns("wan0", ipaddr="172.16.1.5/24")[1]
48 ipaddr = "172.16.1.%d/24" % (i + 100)
49 ret = self._create_ns("neighbor%d" % i, ipaddr=ipaddr,
53 ipaddr = "172.16.1.%d/24" % (i + 150)
54 ret = self._create_ns("local%d" % i, ipaddr=ipaddr,
Dsimulation.py24 out_ifc=None, ipaddr=None, macaddr=None, fn=None, cmd=None, argument
73 if ipaddr: v.add_ip("%s" % ipaddr)
90 def _create_ns(self, name, in_ifc=None, out_ifc=None, ipaddr=None, argument
93 ipaddr, macaddr, fn, cmd, action,
/external/iptables/extensions/
Dlibarpt_mangle.c56 struct in_addr *ipaddr, mask; in arpmangle_parse() local
66 xtables_ipparse_any(optarg, &ipaddr, &mask, &nr); in arpmangle_parse()
67 mangle->u_s.src_ip.s_addr = ipaddr->s_addr; in arpmangle_parse()
68 free(ipaddr); in arpmangle_parse()
72 xtables_ipparse_any(optarg, &ipaddr, &mask, &nr); in arpmangle_parse()
73 mangle->u_t.tgt_ip.s_addr = ipaddr->s_addr; in arpmangle_parse()
74 free(ipaddr); in arpmangle_parse()
/external/python/httplib2/python3/httplib2/
Dsocks.py307 ipaddr = socket.inet_aton(destaddr)
308 req = req + chr(0x01).encode() + ipaddr
313 ipaddr = None
322 ipaddr = socket.inet_aton(socket.gethostbyname(destaddr))
323 req = req + chr(0x01).encode() + ipaddr
349 if ipaddr != None:
350 self.__proxypeername = (socket.inet_ntoa(ipaddr), destport)
380 ipaddr = socket.inet_aton(destaddr)
384 ipaddr = struct.pack("BBBB", 0x00, 0x00, 0x00, 0x01)
387 ipaddr = socket.inet_aton(socket.gethostbyname(destaddr))
[all …]
/external/python/httplib2/python2/httplib2/
Dsocks.py307 ipaddr = socket.inet_aton(destaddr)
308 req = req + chr(0x01).encode() + ipaddr
313 ipaddr = None
322 ipaddr = socket.inet_aton(socket.gethostbyname(destaddr))
323 req = req + chr(0x01).encode() + ipaddr
349 if ipaddr != None:
350 self.__proxypeername = (socket.inet_ntoa(ipaddr), destport)
380 ipaddr = socket.inet_aton(destaddr)
384 ipaddr = struct.pack("BBBB", 0x00, 0x00, 0x00, 0x01)
387 ipaddr = socket.inet_aton(socket.gethostbyname(destaddr))
[all …]
/external/ltp/testcases/network/tcp_cmds/sendfile/
Dsendfile01.sh60 local ipaddr=$(tst_ipaddr rhost)
64 tst_rhost_run -s -b -c "$SERVER $ipaddr $port"
73 "$CLIENT ip '$ipaddr' port '$port' file '$clnt_fname'"
75 $CLIENT $ipaddr $port $clnt_fname $serv_fname $size >\
/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.c115 if (sta->ipaddr == b->your_ip) in handle_dhcp()
118 if (sta->ipaddr != 0) { in handle_dhcp()
121 ipaddr_str(be_to_host32(sta->ipaddr))); in handle_dhcp()
123 (u8 *) &sta->ipaddr); in handle_dhcp()
134 sta->ipaddr = b->your_ip; in handle_dhcp()
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/test/
Dares-test-parse-a.cc48 EXPECT_EQ(expected_addr, info[0].ipaddr.s_addr); in TEST_F()
49 EXPECT_EQ("2.3.4.5", AddressToString(&(info[0].ipaddr), 4)); in TEST_F()
61 EXPECT_EQ(expected_addr, info[0].ipaddr.s_addr); in TEST_F()
62 EXPECT_EQ("2.3.4.5", AddressToString(&(info[0].ipaddr), 4)); in TEST_F()
146 EXPECT_EQ("18.7.22.69", AddressToString(&(info[0].ipaddr), 4)); in TEST_F()
191 EXPECT_EQ("129.97.123.22", AddressToString(&(info[0].ipaddr), 4)); in TEST_F()
222 EXPECT_EQ("8.8.8.8", AddressToString(&(info[0].ipaddr), 4)); in TEST_F()
244 EXPECT_EQ("129.97.123.221", AddressToString(&(info[0].ipaddr), 4)); in TEST_F()
245 EXPECT_EQ("129.97.123.222", AddressToString(&(info[1].ipaddr), 4)); in TEST_F()
246 EXPECT_EQ("129.97.123.223", AddressToString(&(info[2].ipaddr), 4)); in TEST_F()
[all …]
/external/webrtc/test/network/
Dnetwork_emulation.cc98 auto receiver_it = routing_.find(packet.to.ipaddr()); in OnPacketReceived()
211 RTC_CHECK(from.ipaddr() == peer_local_addr_); in SendPacket()
281 RTC_CHECK(packet.to.ipaddr() == peer_local_addr_) in OnPacketReceived()
283 << packet.to.ipaddr().ToString() in OnPacketReceived()
294 stats_.incoming_stats_per_source[packet.from.ipaddr()].packets_dropped++; in OnPacketReceived()
295 stats_.incoming_stats_per_source[packet.from.ipaddr()].bytes_dropped += in OnPacketReceived()
330 if (stats_.incoming_stats_per_source[packet.from.ipaddr()] in UpdateReceiveStats()
332 stats_.incoming_stats_per_source[packet.from.ipaddr()] in UpdateReceiveStats()
334 stats_.incoming_stats_per_source[packet.from.ipaddr()] in UpdateReceiveStats()
337 stats_.incoming_stats_per_source[packet.from.ipaddr()] in UpdateReceiveStats()
[all …]
/external/bcc/tests/python/
Dsimulation.py24 out_ifc=None, ipaddr=None, macaddr=None, fn=None, cmd=None, argument
73 if ipaddr: v.add_ip("%s" % ipaddr)
90 def _create_ns(self, name, in_ifc=None, out_ifc=None, ipaddr=None, argument
93 ipaddr, macaddr, fn, cmd, action,
/external/bcc/examples/networking/distributed_bridge/
Dsimulation.py24 out_ifc=None, ipaddr=None, macaddr=None, fn=None, cmd=None, argument
73 if ipaddr: v.add_ip("%s" % ipaddr)
90 def _create_ns(self, name, in_ifc=None, out_ifc=None, ipaddr=None, argument
93 ipaddr, macaddr, fn, cmd, action,
Dmain.py44 ipaddr = "172.16.1.%d/24" % (100 + i)
45 host_info.append(self._create_ns("host%d" % i, ipaddr=ipaddr,
64 host0_br_ips = [x[0] for x in interface.ipaddr
/external/bcc/examples/networking/
Dsimulation.py24 out_ifc=None, ipaddr=None, macaddr=None, fn=None, cmd=None, argument
73 if ipaddr: v.add_ip("%s" % ipaddr)
90 def _create_ns(self, name, in_ifc=None, out_ifc=None, ipaddr=None, argument
93 ipaddr, macaddr, fn, cmd, action,
/external/bcc/examples/networking/vlan_learning/
Dsimulation.py24 out_ifc=None, ipaddr=None, macaddr=None, fn=None, cmd=None, argument
73 if ipaddr: v.add_ip("%s" % ipaddr)
90 def _create_ns(self, name, in_ifc=None, out_ifc=None, ipaddr=None, argument
93 ipaddr, macaddr, fn, cmd, action,
/external/bcc/examples/networking/tunnel_monitor/
Dsimulation.py24 out_ifc=None, ipaddr=None, macaddr=None, fn=None, cmd=None, argument
73 if ipaddr: v.add_ip("%s" % ipaddr)
90 def _create_ns(self, name, in_ifc=None, out_ifc=None, ipaddr=None, argument
93 ipaddr, macaddr, fn, cmd, action,

123456