Home
last modified time | relevance | path

Searched refs:ip_addr (Results 1 – 25 of 58) sorted by relevance

123

/external/autotest/client/deps/lansim/src/py/
Dhost.py29 def __init__(self, sim, hw_addr, ip_addr): argument
38 self._ip_addr = ip_addr
40 self._bin_ip_addr = socket.inet_aton(ip_addr)
61 def ip_addr(self): member in SimpleHost
78 self.add_arp(hw_addr=pkt.arp.sha, ip_addr=pkt.arp.spa)
95 def add_arp(self, hw_addr, ip_addr): argument
104 self._arp_cache[ip_addr] = hw_addr
107 def _resolve_mac_address(self, ip_addr): argument
126 int_ip_addr, = struct.unpack('!I', ip_addr)
130 if ip_addr in self._arp_cache:
[all …]
/external/autotest/client/cros/netprotos/
Dinterface_host.py18 def ip_addr(self): member in InterfaceHost
49 self._socket = InterfaceDatagramSocket(self.ip_addr)
102 def listen(self, ip_addr, port, recv_callback): argument
116 ip_addr_prefix = ord(socket.inet_aton(ip_addr)[0])
125 socket.inet_aton(ip_addr) +
128 self._recv_sock.bind((ip_addr, port))
154 def send(self, data, ip_addr, port): argument
162 self._send_sock.sendto(data, (ip_addr, port))
Dfake_host.py12 def __init__(self, ip_addr): argument
13 self.ip_addr = ip_addr
45 def listen(self, ip_addr, port, recv_callback): argument
58 self._bind_ip_addr = ip_addr
Dzeroconf.py86 self.register_A(self.full_hostname, host.ip_addr)
276 def register_A(self, hostname, ip_addr): argument
286 self._a_records[hostname].append(socket.inet_aton(ip_addr))
299 for ip_addr in self._a_records[q.name]:
305 ip = ip_addr))
/external/ppp/pppd/plugins/radius/
Dconfig.c410 static int find_match (UINT4 *ip_addr, char *hostname) in find_match() argument
418 if (*ip_addr == ntohl(inet_addr (hostname))) in find_match()
432 if (ntohl(addr) == *ip_addr) in find_match()
450 int rc_find_server (char *server_name, UINT4 *ip_addr, char *secret) in rc_find_server() argument
463 if ((*ip_addr = rc_get_ipaddr (server_name)) == (UINT4) 0) in rc_find_server()
506 if (find_match (ip_addr, hostnm) == 0) in rc_find_server()
518 if (find_match (ip_addr, host2) == 0) in rc_find_server()
526 if (find_match (ip_addr, hostnm) == 0) in rc_find_server()
Dradius.c116 u_int32_t ip_addr; member
226 *addrp = rstate.ip_addr; in radius_choose_ip()
641 rstate.ip_addr = remote; in radius_setparams()
1342 if (addr == rstate.ip_addr) return 1; in radius_allowed_address()
/external/ltp/testcases/network/tcp_cmds/arping/
Darping01.sh28 ip_addr=$(tst_ipaddr rhost)
31 tst_resm TINFO "arping host '$RHOST' with ip '$ip_addr' dev '$dev'"
34 arping -w $timeout "$ip_addr" -I $dev -fq
/external/ltp/testcases/network/dhcp/
Ddhcp_lib.sh42 ip_addr="fd00:1:1:2::12/64"
45 ip_addr="10.1.1.12/24"
67 tst_res TINFO "add $ip_addr to $iface0"
68 ip addr add $ip_addr dev $iface0 || \
/external/ltp/testcases/network/stress/ns-tools/
Dns-icmp_redirector.c70 unsigned char ip_addr[4]; member
76 struct in6_addr ip_addr; member
309 memcpy(gateway_p->ip_addr, rcvarp_p->ar_tip, 4); /* IP address */ in return_arp_reply()
312 memcpy(new_nexthop, gateway_p->ip_addr, 4); in return_arp_reply()
337 memcpy(sndarp_p->ar_sip, gateway_p->ip_addr, 4); in return_arp_reply()
414 memcpy((unsigned char *)&sndip_p->hdr.saddr, gw_p->ip_addr, 4); in return_icmp4_redirect()
499 gateway_p->ip_addr = rcvns_p->defs.nd_ns_target; /* IP address */ in return_neigh_adv()
532 sndip6_p->hdr.ip6_src = gateway_p->ip_addr; in return_neigh_adv()
539 sndna_p->defs.nd_na_target = gateway_p->ip_addr; in return_neigh_adv()
634 sndip6_p->hdr.ip6_src = gw_p->ip_addr; in return_icmp6_redirect()
/external/wpa_supplicant_8/src/wps/
Dwps_upnp_i.h130 unsigned ip_addr; /* IP address of network i.f. we use (host order) */ member
160 int get_netif_info(const char *net_if, unsigned *ip_addr, char **ip_addr_text,
172 int ssdp_open_multicast_sock(u32 ip_addr, const char *forced_ifname);
Dwps_upnp_ssdp.c852 int ssdp_open_multicast_sock(u32 ip_addr, const char *forced_ifname) in ssdp_open_multicast_sock() argument
887 &ip_addr, sizeof(ip_addr))) { in ssdp_open_multicast_sock()
889 "%d (%s)", ip_addr, errno, strerror(errno)); in ssdp_open_multicast_sock()
905 mreq.imr_interface.s_addr = ip_addr; in ssdp_open_multicast_sock()
938 sm->multicast_sd = ssdp_open_multicast_sock(sm->ip_addr, NULL); in ssdp_open_multicast()
Dwps_upnp.c895 int get_netif_info(const char *net_if, unsigned *ip_addr, char **ip_addr_text, in get_netif_info() argument
918 *ip_addr = addr->sin_addr.s_addr; in get_netif_info()
919 in_addr.s_addr = *ip_addr; in get_netif_info()
1027 if (get_netif_info(net_if, &sm->ip_addr, &sm->ip_addr_text, in upnp_wps_device_start()
Dwps_er.h82 unsigned ip_addr; /* IP address of network i.f. we use (host order) */ member
/external/u-boot/net/
Ddns.c111 struct in_addr ip_addr; in dns_handler() local
181 memcpy(&ip_addr, p, 4); in dns_handler()
184 ip_to_string(ip_addr, ip_str); in dns_handler()
/external/autotest/client/cros/cellular/
Dprologix_scpi_driver_test_noautorun.py170 ip_addr = instr['ip']
173 log.debug("trying %s at %s" % (name_part, ip_addr))
175 hostname=ip_addr,
/external/tensorflow/tensorflow/core/platform/cloud/
Dgcs_dns_cache_test.cc28 const string& ip_addr) override { in AddResolveOverride() argument
35 std::map<string, string>::value_type(hostname, ip_addr)); in AddResolveOverride()
Dhttp_request.h111 const string& ip_addr) = 0;
/external/python/cpython2/Lib/
Duuid.py352 ip_addr = socket.gethostbyname(socket.gethostname())
357 mac = _find_mac('arp', '-an', [ip_addr], lambda i: -1)
362 mac = _find_mac('arp', '-an', [ip_addr], lambda i: i+1)
367 mac = _find_mac('arp', '-an', ['(%s)' % ip_addr],
/external/autotest/client/tests/netperf2/
Dnetperf2.py115 def configure_interface(self, dev, ip_addr): argument
118 if self.netif.get_ipaddr() != ip_addr:
119 self.netif.set_ipaddr(ip_addr)
/external/autotest/server/site_tests/enterprise_CFM_Test/
Denterprise_CFM_Test.py127 errmsg = 'Reboot test fails for %s' % self.ip_addr
744 self.ip_addr = cfm_helper.get_mgmt_ipv4(self.client)
746 self.ip_addr)
823 ' %d, Test: %d', self.ip_addr, loop_no, test_no)
885 self.ip_addr, loop_no)
910 logging.info('\n%s:Test_failure:%s:%s', self.ip_addr,
941 self.ip_addr, verification, veri_msg)
/external/python/cpython3/Lib/
Duuid.py430 ip_addr = socket.gethostbyname(socket.gethostname())
435 mac = _find_mac('arp', '-an', [os.fsencode(ip_addr)], lambda i: -1)
440 mac = _find_mac('arp', '-an', [os.fsencode(ip_addr)], lambda i: i+1)
445 mac = _find_mac('arp', '-an', [os.fsencode('(%s)' % ip_addr)],
/external/wpa_supplicant_8/src/utils/
DMakefile21 ip_addr.o \
/external/autotest/client/bin/net/
Dnet_utils_unittest.py750 ip_addr = '110.211.112.213'
762 out = out_format % ip_addr
766 self.assertEquals(mock_netif.get_ipaddr(), ip_addr)
779 ip_addr = '1.2.3.4'
780 out = out_format % ip_addr
783 self.assertEquals(mock_netif.get_ipaddr(), ip_addr)
789 ip_addr = '1.2.3.4'
790 cmd = 'ifconfig %s %s' % (mock_netif._name, ip_addr)
792 mock_netif.set_ipaddr(ip_addr)
/external/walt/docs/
DDevelopment.md39 1. On your workstation, run `ssh root@ip_addr` to verify that Chromebook is accessible
40 1. Run `adb connect ip_addr:22`. From this point on Android studio and adb on your workstation shou…
/external/wpa_supplicant_8/src/ap/
Dsta_info.c1245 char ip_addr[100]; in ap_sta_set_authorized() local
1248 ip_addr[0] = '\0'; in ap_sta_set_authorized()
1251 os_snprintf(ip_addr, sizeof(ip_addr), in ap_sta_set_authorized()
1265 buf, ip_addr, keyid_buf); in ap_sta_set_authorized()
1271 buf, ip_addr, keyid_buf); in ap_sta_set_authorized()

123