Home
last modified time | relevance | path

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

/lib/liblwip/test/unit/etharp/
Dtest_etharp.c79 struct etharp_hdr *etharphdr; in create_arp_response() local
85 etharphdr = (struct etharp_hdr*)(ethhdr + 1); in create_arp_response()
91 etharphdr->hwtype = htons(/*HWTYPE_ETHERNET*/ 1); in create_arp_response()
92 etharphdr->proto = htons(ETHTYPE_IP); in create_arp_response()
93 etharphdr->hwlen = ETHARP_HWADDR_LEN; in create_arp_response()
94 etharphdr->protolen = sizeof(ip_addr_t); in create_arp_response()
95 etharphdr->opcode = htons(ARP_REPLY); in create_arp_response()
97 SMEMCPY(&etharphdr->sipaddr, adr, sizeof(ip_addr_t)); in create_arp_response()
98 SMEMCPY(&etharphdr->dipaddr, &test_ipaddr, sizeof(ip_addr_t)); in create_arp_response()
104 etharphdr->shwaddr.addr[k] = test_ethaddr2.addr[k]; in create_arp_response()
[all …]