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