Lines Matching refs:etharphdr
79 struct etharp_hdr *etharphdr;
85 etharphdr = (struct etharp_hdr*)(ethhdr + 1);
91 etharphdr->hwtype = htons(/*HWTYPE_ETHERNET*/ 1);
92 etharphdr->proto = htons(ETHTYPE_IP);
93 etharphdr->hwlen = ETHARP_HWADDR_LEN;
94 etharphdr->protolen = sizeof(ip_addr_t);
95 etharphdr->opcode = htons(ARP_REPLY);
97 SMEMCPY(ðarphdr->sipaddr, adr, sizeof(ip_addr_t));
98 SMEMCPY(ðarphdr->dipaddr, &test_ipaddr, sizeof(ip_addr_t));
104 etharphdr->shwaddr.addr[k] = test_ethaddr2.addr[k];
105 etharphdr->dhwaddr.addr[k] = test_ethaddr.addr[k];