Lines Matching refs:arpreq
1700 struct arpreq arpreq;
1704 memset (&arpreq, '\0', sizeof(arpreq));
1706 SET_SA_FAMILY(arpreq.arp_pa, AF_INET);
1707 SIN_ADDR(arpreq.arp_pa) = his_adr;
1708 arpreq.arp_flags = ATF_PERM | ATF_PUBL;
1713 if (!get_ether_addr(his_adr, &arpreq.arp_ha, proxy_arp_dev,
1718 strlcpy(arpreq.arp_dev, proxy_arp_dev, sizeof(arpreq.arp_dev));
1720 if (ioctl(sock_fd, SIOCSARP, (caddr_t)&arpreq) < 0) {
1751 struct arpreq arpreq;
1755 memset (&arpreq, '\0', sizeof(arpreq));
1756 SET_SA_FAMILY(arpreq.arp_pa, AF_INET);
1757 SIN_ADDR(arpreq.arp_pa) = his_adr;
1758 arpreq.arp_flags = ATF_PERM | ATF_PUBL;
1759 strlcpy(arpreq.arp_dev, proxy_arp_dev, sizeof(arpreq.arp_dev));
1761 if (ioctl(sock_fd, SIOCDARP, (caddr_t)&arpreq) < 0) {