Searched refs:etharphdr (Results 1 – 1 of 1) sorted by relevance
79 struct etharp_hdr *etharphdr; in create_arp_response() local85 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(ðarphdr->sipaddr, adr, sizeof(ip_addr_t)); in create_arp_response()98 SMEMCPY(ðarphdr->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 …]