Home
last modified time | relevance | path

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

12

/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/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/route53/
Dhealthcheck.py77 …def __init__(self, ip_addr, port, hc_type, resource_path, fqdn=None, string_match=None, request_in… argument
106 self.ip_addr = ip_addr
140 if self.ip_addr:
141 params['ip_addr_part'] = self.XMLIpAddrPart % {'ip_addr': self.ip_addr}
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/route53/
Dtest_health_check.py32 hc = HealthCheck(ip_addr="54.217.7.118", port=80, hc_type="HTTP", resource_path="/testing")
43 … hc = HealthCheck(ip_addr="54.217.7.118", port=443, hc_type="HTTPS", resource_path="/testing")
55 … hc = HealthCheck(ip_addr=None, port=443, hc_type="HTTPS", resource_path="/", fqdn="google.com")
67 hc = HealthCheck(ip_addr="54.217.7.118", port=80, hc_type="HTTP", resource_path="/testing")
69 hc = HealthCheck(ip_addr="54.217.7.119", port=80, hc_type="HTTP", resource_path="/testing")
77 hc = HealthCheck(ip_addr="54.217.7.118", port=80, hc_type="HTTP", resource_path="/testing")
93 …hc = HealthCheck(ip_addr="54.217.7.118", port=80, hc_type="HTTP_STR_MATCH", resource_path="/testin…
105 …hc = HealthCheck(ip_addr="54.217.7.118", port=80, hc_type="HTTPS_STR_MATCH", resource_path="/testi…
117 hc = HealthCheck(ip_addr="54.217.7.118", port=80, hc_type="HTTP", resource_path="/testing")
/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/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.c858 int ssdp_open_multicast_sock(u32 ip_addr, const char *forced_ifname) in ssdp_open_multicast_sock() argument
893 &ip_addr, sizeof(ip_addr))) { in ssdp_open_multicast_sock()
895 "%d (%s)", ip_addr, errno, strerror(errno)); in ssdp_open_multicast_sock()
911 mreq.imr_interface.s_addr = ip_addr; in ssdp_open_multicast_sock()
944 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
Dwps_er_ssdp.c167 er->multicast_sd = ssdp_open_multicast_sock(er->ip_addr, in wps_er_ssdp_init()
/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/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/ec2/
Dnetworkinterface.py294 for k, ip_addr in enumerate(spec.private_ip_addresses):
298 str(ip_addr.private_ip_address)
299 if ip_addr.primary is not None:
301 'true' if ip_addr.primary else 'false'
/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/fio/examples/
Drdmaio-server.fio4 filename=[ip_addr]/[port]
Drdmaio-client.fio4 filename=[ip_addr]/[port]/[RDMA_WRITE/RDMA_READ/SEND]
/external/wpa_supplicant_8/src/utils/
DMakefile20 ip_addr.o \
/external/dnsmasq/contrib/dnslist/
Ddhcp.css52 .ip_addr { width: 10em; background: #DDD; }
/external/wpa_supplicant_8/src/ap/
Dwpa_auth.c647 if (WPA_GET_BE32(sm->ip_addr)) { in wpa_free_sta_sm()
651 sm->ip_addr[0], sm->ip_addr[1], in wpa_free_sta_sm()
652 sm->ip_addr[2], sm->ip_addr[3], in wpa_free_sta_sm()
656 WPA_GET_BE32(sm->ip_addr) - start); in wpa_free_sta_sm()
1168 wpa_auth->ip_pool && WPA_GET_BE32(sm->ip_addr) == 0) { in wpa_receive()
1177 WPA_PUT_BE32(sm->ip_addr, start + idx); in wpa_receive()
1180 sm->ip_addr[0], sm->ip_addr[1], in wpa_receive()
1181 sm->ip_addr[2], sm->ip_addr[3], in wpa_receive()
2289 if (WPA_GET_BE32(sm->ip_addr) > 0) in SM_STATE()
2367 if (WPA_GET_BE32(sm->ip_addr) > 0) { in SM_STATE()
[all …]
Dsta_info.c1146 char ip_addr[100]; in ap_sta_set_authorized() local
1147 ip_addr[0] = '\0'; in ap_sta_set_authorized()
1150 os_snprintf(ip_addr, sizeof(ip_addr), in ap_sta_set_authorized()
1158 buf, ip_addr); in ap_sta_set_authorized()
1164 buf, ip_addr); in ap_sta_set_authorized()
/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/dnsmasq/src/
Drfc1035.c520 in_addr_t ip_addr = ntohl(addr.s_addr); in private_net() local
523 ((ip_addr & 0xFF000000) == 0x7F000000) /* 127.0.0.0/8 (loopback) */ || in private_net()
524 ((ip_addr & 0xFFFF0000) == 0xC0A80000) /* 192.168.0.0/16 (private) */ || in private_net()
525 ((ip_addr & 0xFF000000) == 0x0A000000) /* 10.0.0.0/8 (private) */ || in private_net()
526 ((ip_addr & 0xFFF00000) == 0xAC100000) /* 172.16.0.0/12 (private) */ || in private_net()
527 ((ip_addr & 0xFFFF0000) == 0xA9FE0000) /* 169.254.0.0/16 (zeroconf) */ ; in private_net()
/external/kernel-headers/original/uapi/linux/
Dhyperv.h330 __u16 ip_addr[MAX_IP_ADDR_SIZE]; member

12