Home
last modified time | relevance | path

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

/third_party/lwip/test/unit/etharp/
H A Dtest_etharp.c81 struct etharp_hdr *etharphdr; in create_arp_response() local
87 etharphdr = (struct etharp_hdr*)(ethhdr + 1); in create_arp_response()
93 etharphdr->hwtype = htons(LWIP_IANA_HWTYPE_ETHERNET); in create_arp_response()
94 etharphdr->proto = htons(ETHTYPE_IP); in create_arp_response()
95 etharphdr->hwlen = ETHARP_HWADDR_LEN; in create_arp_response()
96 etharphdr->protolen = sizeof(ip4_addr_t); in create_arp_response()
97 etharphdr->opcode = htons(ARP_REPLY); in create_arp_response()
99 SMEMCPY(&etharphdr->sipaddr, adr, sizeof(ip4_addr_t)); in create_arp_response()
100 SMEMCPY(&etharphdr->dipaddr, &test_ipaddr, sizeof(ip4_addr_t)); in create_arp_response()
106 etharphdr in create_arp_response()
[all...]

Completed in 1 milliseconds