Lines Matching defs:ah
102 struct ether_arp *ah;
136 ah = &wbuf.data.arp;
137 ah->arp_hrd = htons(ARPHRD_ETHER);
138 ah->arp_pro = htons(ETHERTYPE_IP);
139 ah->arp_hln = sizeof(ah->arp_sha); /* hardware address length */
140 ah->arp_pln = sizeof(ah->arp_spa); /* protocol address length */
141 ah->arp_op = htons(ARPOP_REQUEST);
142 MACPY(d->myea, ah->arp_sha);
143 (void)memcpy(ah->arp_spa, &d->myip, sizeof(ah->arp_spa));
145 (void)memcpy(ah->arp_tpa, &addr, sizeof(ah->arp_tpa));
158 ah = &rbuf.data.arp;
164 inet_ntoa(addr), ether_sprintf(ah->arp_sha));
167 MACPY(ah->arp_sha, al->ea);
193 struct ether_arp *ah;
220 ah = (struct ether_arp *)pkt;
221 if (ah->arp_hrd != htons(ARPHRD_ETHER) ||
222 ah->arp_pro != htons(ETHERTYPE_IP) ||
223 ah->arp_hln != sizeof(ah->arp_sha) ||
224 ah->arp_pln != sizeof(ah->arp_spa) )
233 if (ah->arp_op == htons(ARPOP_REQUEST)) {
238 arp_reply(d, ah);
242 if (ah->arp_op != htons(ARPOP_REPLY)) {
252 ah->arp_spa, sizeof(ah->arp_spa)))