Lines Matching refs:rarp
72 struct arp_hdr *rarp; in rarp_request() local
81 rarp = (struct arp_hdr *)pkt; in rarp_request()
83 rarp->ar_hrd = htons(ARP_ETHER); in rarp_request()
84 rarp->ar_pro = htons(PROT_IP); in rarp_request()
85 rarp->ar_hln = 6; in rarp_request()
86 rarp->ar_pln = 4; in rarp_request()
87 rarp->ar_op = htons(RARPOP_REQUEST); in rarp_request()
88 memcpy(&rarp->ar_data[0], net_ethaddr, 6); /* source ET addr */ in rarp_request()
89 memcpy(&rarp->ar_data[6], &net_ip, 4); /* source IP addr */ in rarp_request()
91 memcpy(&rarp->ar_data[10], net_ethaddr, 6); in rarp_request()
93 memset(&rarp->ar_data[16], 0xff, 4); in rarp_request()