Home
last modified time | relevance | path

Searched refs:arp_hdr (Results 1 – 8 of 8) sorted by relevance

/external/toybox/toys/pending/
Darping.c134 struct arphdr *arp_hdr = (struct arphdr *)toybuf; in recv_from() local
135 unsigned char *p = (unsigned char *)(arp_hdr + 1); in recv_from()
137 if (arp_hdr->ar_op != htons(ARPOP_REQUEST) && in recv_from()
138 arp_hdr->ar_op != htons(ARPOP_REPLY)) return; in recv_from()
143 if (arp_hdr->ar_pro != htons(ETH_P_IP) || (arp_hdr->ar_pln != 4) in recv_from()
144 || (arp_hdr->ar_hln != src_pk.sll_halen) in recv_from()
145 || (*recv_len < (int)(sizeof(*arp_hdr) + 2 * (4 + arp_hdr->ar_hln)))) in recv_from()
148 memcpy(&s_ip.s_addr, p + arp_hdr->ar_hln, 4); in recv_from()
149 memcpy(&d_ip.s_addr, p + arp_hdr->ar_hln + 4 + arp_hdr->ar_hln, 4); in recv_from()
160 arp_hdr->ar_op == htons(ARPOP_REPLY) ? "ply" : "quest", in recv_from()
[all …]
/external/u-boot/net/
Drarp.c29 struct arp_hdr *arp; in rarp_receive()
32 arp = (struct arp_hdr *)ip; in rarp_receive()
72 struct arp_hdr *rarp; in rarp_request()
81 rarp = (struct arp_hdr *)pkt; in rarp_request()
Darp.c56 struct arp_hdr *arp; in arp_raw_request()
66 arp = (struct arp_hdr *)pkt; in arp_raw_request()
126 struct arp_hdr *arp; in arp_receive()
141 arp = (struct arp_hdr *)ip; in arp_receive()
Dlink_local.h20 void link_local_receive_arp(struct arp_hdr *arp, int len);
Dlink_local.c210 void link_local_receive_arp(struct arp_hdr *arp, int len) in link_local_receive_arp()
/external/u-boot/drivers/net/
Dsandbox-raw.c51 struct arp_hdr *arp = packet + ETHER_HDR_SIZE; in sb_eth_raw_send()
75 struct arp_hdr *arp = (void *)net_rx_packets[0] + in sb_eth_raw_recv()
Dsandbox.c81 struct arp_hdr *arp = packet + ETHER_HDR_SIZE; in sb_eth_send()
85 struct arp_hdr *arp_recv; in sb_eth_send()
/external/u-boot/include/
Dnet.h406 struct arp_hdr { struct