Lines Matching refs:arpreq
170 struct arpreq arpreq; in arp_SetProxy() local
176 memset(&arpreq, '\0', sizeof arpreq); in arp_SetProxy()
187 arpreq.arp_ha.sa_len = sizeof(struct sockaddr); in arp_SetProxy()
188 arpreq.arp_ha.sa_family = AF_UNSPEC; in arp_SetProxy()
189 memcpy(arpreq.arp_ha.sa_data, LLADDR(&dls.sdl), dls.sdl.sdl_alen); in arp_SetProxy()
190 SET_SA_FAMILY(arpreq.arp_pa, AF_INET); in arp_SetProxy()
191 ((struct sockaddr_in *)&arpreq.arp_pa)->sin_addr.s_addr = addr.s_addr; in arp_SetProxy()
192 arpreq.arp_flags = ATF_PERM | ATF_PUBL; in arp_SetProxy()
193 if (ID0ioctl(s, SIOCSARP, (caddr_t) & arpreq) < 0) { in arp_SetProxy()
207 struct arpreq arpreq; in arp_ClearProxy() local
209 memset(&arpreq, '\0', sizeof arpreq); in arp_ClearProxy()
210 SET_SA_FAMILY(arpreq.arp_pa, AF_INET); in arp_ClearProxy()
211 ((struct sockaddr_in *)&arpreq.arp_pa)->sin_addr.s_addr = addr.s_addr; in arp_ClearProxy()
212 if (ID0ioctl(s, SIOCDARP, (caddr_t) & arpreq) < 0) { in arp_ClearProxy()