Searched refs:arp (Results 1 – 11 of 11) sorted by relevance
/u-boot/net/ |
A D | arp.c | 59 struct arp_hdr *arp; in arp_raw_request() local 69 arp = (struct arp_hdr *)pkt; in arp_raw_request() 72 arp->ar_pro = htons(PROT_IP); in arp_raw_request() 73 arp->ar_hln = ARP_HLEN; in arp_raw_request() 74 arp->ar_pln = ARP_PLEN; in arp_raw_request() 129 struct arp_hdr *arp; in arp_receive() local 145 arp = (struct arp_hdr *)ip; in arp_receive() 171 memcpy(&arp->ar_tha, &arp->ar_sha, ARP_HLEN); in arp_receive() 172 net_copy_ip(&arp->ar_tpa, &arp->ar_spa); in arp_receive() 213 arp->ar_data); in arp_receive() [all …]
|
A D | rarp.c | 30 struct arp_hdr *arp; in rarp_receive() local 33 arp = (struct arp_hdr *)ip; in rarp_receive() 39 if ((ntohs(arp->ar_op) != RARPOP_REPLY) || in rarp_receive() 40 (ntohs(arp->ar_hrd) != ARP_ETHER) || in rarp_receive() 41 (ntohs(arp->ar_pro) != PROT_IP) || in rarp_receive() 42 (arp->ar_hln != 6) || (arp->ar_pln != 4)) { in rarp_receive() 45 net_copy_ip(&net_ip, &arp->ar_data[16]); in rarp_receive() 47 net_copy_ip(&net_server_ip, &arp->ar_data[6]); in rarp_receive() 48 memcpy(net_server_ethaddr, &arp->ar_data[0], 6); in rarp_receive()
|
A D | link_local.c | 254 eth_get_name(), ntohs(arp->ar_pro), in link_local_receive_arp() 255 ntohs(arp->ar_op)); in link_local_receive_arp() 257 &arp->ar_sha, in link_local_receive_arp() 258 &arp->ar_spa); in link_local_receive_arp() 260 &arp->ar_tha, in link_local_receive_arp() 261 &arp->ar_tpa); in link_local_receive_arp() 263 if (arp->ar_op != htons(ARPOP_REQUEST) && in link_local_receive_arp() 264 arp->ar_op != htons(ARPOP_REPLY)) { in link_local_receive_arp() 272 if (memcmp(&arp->ar_spa, &ip, ARP_PLEN) == 0 && in link_local_receive_arp() 283 if (arp->ar_op == htons(ARPOP_REQUEST) && in link_local_receive_arp() [all …]
|
A D | link_local.h | 20 void link_local_receive_arp(struct arp_hdr *arp, int len);
|
A D | Makefile | 8 obj-$(CONFIG_NET) += arp.o
|
/u-boot/drivers/net/ |
A D | sandbox-raw.c | 51 struct arp_hdr *arp = packet + ETHER_HDR_SIZE; in sb_eth_raw_send() local 57 arp_ip = net_read_ip(&arp->ar_tpa); in sb_eth_raw_send() 75 struct arp_hdr *arp = (void *)net_rx_packets[0] + in sb_eth_raw_recv() local 87 arp->ar_hrd = htons(ARP_ETHER); in sb_eth_raw_recv() 88 arp->ar_pro = htons(PROT_IP); in sb_eth_raw_recv() 89 arp->ar_hln = ARP_HLEN; in sb_eth_raw_recv() 90 arp->ar_pln = ARP_PLEN; in sb_eth_raw_recv() 91 arp->ar_op = htons(ARPOP_REPLY); in sb_eth_raw_recv() 93 memset(&arp->ar_sha, 0x01, ARP_HLEN); in sb_eth_raw_recv() 95 net_write_ip(&arp->ar_spa, arp_ip); in sb_eth_raw_recv() [all …]
|
A D | sandbox.c | 64 struct arp_hdr *arp; in sandbox_eth_arp_req_to_reply() local 71 arp = packet + ETHER_HDR_SIZE; in sandbox_eth_arp_req_to_reply() 73 if (ntohs(arp->ar_op) != ARPOP_REQUEST) in sandbox_eth_arp_req_to_reply() 81 priv->fake_host_ipaddr = net_read_ip(&arp->ar_tpa); in sandbox_eth_arp_req_to_reply() 97 memcpy(&arp_recv->ar_tha, &arp->ar_sha, ARP_HLEN); in sandbox_eth_arp_req_to_reply() 98 net_copy_ip(&arp_recv->ar_tpa, &arp->ar_spa); in sandbox_eth_arp_req_to_reply()
|
/u-boot/test/dm/ |
A D | eth.c | 270 struct arp_hdr *arp; in sb_check_arp_reply() local 277 arp = packet + ETHER_HDR_SIZE; in sb_check_arp_reply() 279 if (ntohs(arp->ar_op) != ARPOP_REPLY) in sb_check_arp_reply() 290 ut_assert(arp->ar_hrd == htons(ARP_ETHER)); in sb_check_arp_reply() 291 ut_assert(arp->ar_pro == htons(PROT_IP)); in sb_check_arp_reply() 292 ut_assert(arp->ar_hln == ARP_HLEN); in sb_check_arp_reply() 293 ut_assert(arp->ar_pln == ARP_PLEN); in sb_check_arp_reply() 297 ut_assert(net_read_ip(&arp->ar_tpa).s_addr == in sb_check_arp_reply() 308 struct arp_hdr *arp = packet + ETHER_HDR_SIZE; in sb_with_async_arp_handler() local 316 ntohs(arp->ar_op) == ARPOP_REQUEST) { in sb_with_async_arp_handler() [all …]
|
/u-boot/lib/efi_loader/ |
A D | efi_net.c | 938 netobj->pxe.arp = efi_pxe_base_code_arp; in efi_net_register()
|
/u-boot/doc/device-tree-bindings/fsp/fsp2/apollolake/ |
A D | fsp-s.txt | 338 - fsps,arp-enable: SMBus ARP Support
|
/u-boot/include/ |
A D | efi_api.h | 1556 efi_status_t (EFIAPI *arp)(struct efi_pxe_base_code_protocol *this,
|
Completed in 20 milliseconds