Lines Matching refs:rah
603 struct arphdr *rah = (struct arphdr *)(arp_reply + ETH_HLEN);
628 rah->ar_hrd = htons(1);
629 rah->ar_pro = htons(ETH_P_IP);
630 rah->ar_hln = ETH_ALEN;
631 rah->ar_pln = 4;
632 rah->ar_op = htons(ARPOP_REPLY);
633 memcpy(rah->ar_sha, reh->h_source, ETH_ALEN);
634 memcpy(rah->ar_sip, ah->ar_tip, 4);
635 memcpy(rah->ar_tha, ah->ar_sha, ETH_ALEN);
636 memcpy(rah->ar_tip, ah->ar_sip, 4);
698 struct arphdr *rah = (struct arphdr *)(arp_req + ETH_HLEN);
710 rah->ar_hrd = htons(1);
711 rah->ar_pro = htons(ETH_P_IP);
712 rah->ar_hln = ETH_ALEN;
713 rah->ar_pln = 4;
714 rah->ar_op = htons(ARPOP_REQUEST);
716 memcpy(rah->ar_sha, special_ethaddr, ETH_ALEN - 1);
717 rah->ar_sha[5] = CTL_ALIAS;
719 memcpy(rah->ar_sip, &alias_addr, 4);
721 memset(rah->ar_tha, 0, ETH_ALEN);
723 memcpy(rah->ar_tip, &iph->ip_dst, 4);