Lines Matching refs:rah
692 struct arphdr *rah = (struct arphdr *)(arp_reply + ETH_HLEN);
721 rah->ar_hrd = htons(1);
722 rah->ar_pro = htons(ETH_P_IP);
723 rah->ar_hln = ETH_ALEN;
724 rah->ar_pln = 4;
725 rah->ar_op = htons(ARPOP_REPLY);
726 memcpy(rah->ar_sha, reh->h_source, ETH_ALEN);
727 memcpy(rah->ar_sip, ah->ar_tip, 4);
728 memcpy(rah->ar_tha, ah->ar_sha, ETH_ALEN);
729 memcpy(rah->ar_tip, ah->ar_sip, 4);
791 struct arphdr *rah = (struct arphdr *)(arp_req + ETH_HLEN);
803 rah->ar_hrd = htons(1);
804 rah->ar_pro = htons(ETH_P_IP);
805 rah->ar_hln = ETH_ALEN;
806 rah->ar_pln = 4;
807 rah->ar_op = htons(ARPOP_REQUEST);
809 memcpy(rah->ar_sha, special_ethaddr, ETH_ALEN - 1);
810 rah->ar_sha[5] = CTL_ALIAS;
812 ip_write32h(alias_addr_ip, rah->ar_sip);
814 memset(rah->ar_tha, 0, ETH_ALEN);
816 ip_write( iph->ip_dst, rah->ar_tip );