Home
last modified time | relevance | path

Searched refs:ip_addr (Results 1 – 25 of 57) 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/crosvm/tests/
Dplugin_net_config.c58 char ip_addr[INET_ADDRSTRLEN]; in main() local
59 inet_ntop(AF_INET, &net_config.host_ip, ip_addr, sizeof(ip_addr)); in main()
60 fprintf(stderr, "ip %s != 100.115.92.5\n", ip_addr); in main()
/external/ltp/testcases/network/tcp_cmds/arping/
Darping01.sh15 local ip_addr=$(tst_ipaddr rhost)
18 tst_res TINFO "arping host '$ip_addr' via dev '$dev' with timeout '$timeout' secs"
19 EXPECT_PASS arping -w $timeout "$ip_addr" -I $dev -fq
/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()
/external/ltp/testcases/network/dhcp/
Ddhcp_lib.sh43 ip_addr="fd00:1:1:2::12/64"
47 ip_addr="10.1.1.12/24"
71 tst_res TINFO "add $ip_addr to $iface0"
72 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/crosvm/net_util/src/
Dlib.rs63 fn create_sockaddr(ip_addr: net::Ipv4Addr) -> net_sys::sockaddr { in create_sockaddr()
69 sin_addr: unsafe { mem::transmute(ip_addr.octets()) }, in create_sockaddr()
244 fn ip_addr(&self) -> Result<net::Ipv4Addr>; in ip_addr() method
247 fn set_ip_addr(&self, ip_addr: net::Ipv4Addr) -> Result<()>; in set_ip_addr()
324 fn ip_addr(&self) -> Result<net::Ipv4Addr> { in ip_addr() method
342 fn set_ip_addr(&self, ip_addr: net::Ipv4Addr) -> Result<()> { in set_ip_addr()
344 let addr = create_sockaddr(ip_addr); in set_ip_addr()
559 fn ip_addr(&self) -> Result<net::Ipv4Addr> { in ip_addr() method
661 let ip_addr: net::Ipv4Addr = "100.115.92.5".parse().unwrap(); in tap_configure() localVariable
665 let ret = tap.set_ip_addr(ip_addr); in tap_configure()
/external/wpa_supplicant_8/src/wps/
Dwps_upnp_i.h130 unsigned ip_addr; /* IP address of network i.f. we use (host order) */ member
161 int get_netif_info(const char *net_if, unsigned *ip_addr, char **ip_addr_text,
173 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.c310 (sm->ip_addr & sm->netmask.s_addr); in local_network_addr()
918 int get_netif_info(const char *net_if, unsigned *ip_addr, char **ip_addr_text, in get_netif_info() argument
941 *ip_addr = addr->sin_addr.s_addr; in get_netif_info()
942 in_addr.s_addr = *ip_addr; in get_netif_info()
1063 if (get_netif_info(net_if, &sm->ip_addr, &sm->ip_addr_text, in upnp_wps_device_start()
/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/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/
Dload_balancer_api.cc33 int r = memcmp(ip_addr, other.ip_addr, ip_size); in operator ==()
130 memcpy(cur.ip_addr, address.data, address.size); in ParseServerList()
Dload_balancer_api.h42 char ip_addr[GRPC_GRPCLB_SERVER_IP_ADDRESS_MAX_SIZE]; member
/external/tensorflow/tensorflow/core/platform/cloud/
Dgcs_dns_cache_test.cc29 const string& ip_addr) override { in AddResolveOverride() argument
36 std::map<string, string>::value_type(hostname, ip_addr)); in AddResolveOverride()
Dhttp_request.h112 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/python/cpython3/Lib/
Duuid.py527 ip_addr = socket.gethostbyname(socket.gethostname())
532 mac = _find_mac_near_keyword('arp', '-an', [os.fsencode(ip_addr)], lambda i: -1)
537 mac = _find_mac_near_keyword('arp', '-an', [os.fsencode(ip_addr)], lambda i: i+1)
542 mac = _find_mac_near_keyword('arp', '-an', [os.fsencode('(%s)' % 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/wpa_supplicant_8/src/utils/
DMakefile11 ip_addr.o \
/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/linux-kselftest/tools/testing/selftests/net/forwarding/
Dvxlan_symmetric.sh118 local ip_addr=$1; shift
126 ip address add $ip_addr/24 dev $if_name
137 local ip_addr=$1; shift
142 ip address del $ip_addr/24 dev $if_name
Dvxlan_asymmetric.sh108 local ip_addr=$1; shift
116 ip address add $ip_addr/24 dev $if_name
127 local ip_addr=$1; shift
132 ip address del $ip_addr/24 dev $if_name

123