Home
last modified time | relevance | path

Searched refs:ip_addr (Results 1 – 25 of 73) 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/syslinux/com32/hdt/
Dhdt-menu-pxe.c110 p->ip_addr[0], p->ip_addr[1], p->ip_addr[2], p->ip_addr[3]); in compute_PXE()
112 p->ip_addr[0], p->ip_addr[1], p->ip_addr[2], p->ip_addr[3]); in compute_PXE()
Dhdt-menu-summary.c149 p->ip_addr[0], p->ip_addr[1], p->ip_addr[2], p->ip_addr[3]); in compute_summarymenu()
151 "PXE IP Address: %d.%d.%d.%d", p->ip_addr[0], in compute_summarymenu()
152 p->ip_addr[1], p->ip_addr[2], p->ip_addr[3]); in compute_summarymenu()
Dhdt-cli-pxe.c77 more_printf(" Addresses : %d.%d.%d.%d @ %s\n", p->ip_addr[0], in main_show_pxe()
78 p->ip_addr[1], p->ip_addr[2], p->ip_addr[3], p->mac_addr); in main_show_pxe()
/external/ltp/testcases/network/tcp_cmds/arping/
Darping01.sh27 ip_addr=$(tst_ipaddr rhost)
30 tst_resm TINFO "arping host '$RHOST' with ip '$ip_addr' dev '$dev'"
33 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.sh64 tst_resm TINFO "add $ip_addr to $iface0"
65 ip addr add $ip_addr dev $iface0 || \
125 ip_addr="fd00:1:1:2::12/64"
128 ip_addr="10.1.1.12/24"
/external/syslinux/core/lwip/src/netif/
Dundiif.c152 struct ip_addr ipaddr;
264 struct ip_addr *sip, *dip; in snprintf_arp_hdr()
269 sip = (struct ip_addr *) &(arphdr->sipaddr); in snprintf_arp_hdr()
270 dip = (struct ip_addr *) &(arphdr->dipaddr); in snprintf_arp_hdr()
568 undiarp_request(struct netif *netif, struct ip_addr *ipaddr) in undiarp_request()
595 hdr->protolen = sizeof(struct ip_addr); in undiarp_request()
600 memcpy(hdr_ptr, &netif->ip_addr, 4); in undiarp_request()
709 find_entry(struct ip_addr *ipaddr, u8_t flags, struct netif *netif) in find_entry()
711 find_entry(struct ip_addr *ipaddr, u8_t flags) in find_entry()
933 undiarp_query(struct netif *netif, struct ip_addr *ipaddr, struct pbuf *q) in undiarp_query()
[all …]
Detharp.c639 if (!ip_addr_netcmp(&iphdr_src, &(netif->ip_addr), &(netif->netmask))) {
729 if (ip_addr_isany(&netif->ip_addr)) {
733 for_us = (u8_t)ip_addr_cmp(&dipaddr, &(netif->ip_addr));
763 IPADDR2_COPY(&hdr->sipaddr, &netif->ip_addr);
771 …ethdst_hwaddr = ip_addr_islinklocal(&netif->ip_addr) ? (u8_t*)(ethbroadcast.addr) : hdr->shwaddr.a…
789 } else if (ip_addr_isany(&netif->ip_addr)) {
873 if (!ip_addr_netcmp(ipaddr, &(netif->ip_addr), &(netif->netmask)) &&
1202 (struct eth_addr *)netif->hwaddr, &netif->ip_addr, &ethzero,
/external/syslinux/core/lwip/src/core/
Dnetif.c145 ip_addr_set_zero(&netif->ip_addr); in netif_add()
328 if ((ip_addr_cmp(ipaddr, &(netif->ip_addr))) == 0) { in netif_set_ipaddr()
334 if (ip_addr_cmp(&(pcb->local_ip), &(netif->ip_addr)) in netif_set_ipaddr()
352 (ip_addr_cmp(&(lpcb->local_ip), &(netif->ip_addr)))) { in netif_set_ipaddr()
363 ip_addr_set(&(netif->ip_addr), ipaddr); in netif_set_ipaddr()
369 ip4_addr1_16(&netif->ip_addr), in netif_set_ipaddr()
370 ip4_addr2_16(&netif->ip_addr), in netif_set_ipaddr()
371 ip4_addr3_16(&netif->ip_addr), in netif_set_ipaddr()
372 ip4_addr4_16(&netif->ip_addr))); in netif_set_ipaddr()
/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()
/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/syslinux/core/fs/pxe/
Dcore.c70 struct ip_addr addr; in core_udp_connect()
179 struct ip_addr addr; in core_udp_sendto()
233 dns_setserver(i, (struct ip_addr *)&dns_server[i]); in net_core_init()
259 struct ip_addr addr; in core_tcp_connect()
/external/syslinux/core/lwip/src/core/ipv4/
Dip.c132 if (ip_addr_netcmp(dest, &(netif->ip_addr), &(netif->netmask))) { in ip_route()
335 ip4_addr_get_u32(&iphdr->dest), ip4_addr_get_u32(&netif->ip_addr),
337 ip4_addr_get_u32(&netif->ip_addr) & ip4_addr_get_u32(&netif->netmask),
341 if ((netif_is_up(netif)) && (!ip_addr_isany(&(netif->ip_addr)))) {
343 if (ip_addr_cmp(&current_iphdr_dest, &(netif->ip_addr)) ||
676 ip_addr_copy(iphdr->src, netif->ip_addr);
708 if (ip_addr_cmp(dest, &netif->ip_addr)) {
Dip_addr.c70 } else if (addr == ip4_addr_get_u32(&netif->ip_addr)) { in ip4_addr_isbroadcast()
73 } else if (ip_addr_netcmp(&ipaddr, &(netif->ip_addr), &(netif->netmask)) in ip4_addr_isbroadcast()
/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/syslinux/core/lwip/src/include/ipv4/lwip/
Dip_addr.h44 struct ip_addr { struct
64 typedef struct ip_addr ip_addr_t; argument
/external/wpa_supplicant_8/src/utils/
DMakefile21 ip_addr.o \
/external/dnsmasq/contrib/dnslist/
Ddhcp.css52 .ip_addr { width: 10em; background: #DDD; }
/external/syslinux/core/lwip/doc/
Drawapi.txt110 - err_t tcp_bind(struct tcp_pcb *pcb, struct ip_addr *ipaddr,
158 - err_t tcp_connect(struct tcp_pcb *pcb, struct ip_addr *ipaddr,
325 - err_t udp_bind(struct udp_pcb *pcb, struct ip_addr *ipaddr,
332 - err_t udp_connect(struct udp_pcb *pcb, struct ip_addr *ipaddr,
350 struct ip_addr *addr,
411 - netif_add(struct netif *netif, struct ip_addr *ipaddr,
412 struct ip_addr *netmask, struct ip_addr *gw,
418 Give pointers to cleared ip_addr structures when using DHCP,

123