Home | History | Annotate | Download | only in libpcap

Lines Matching defs:ifr

597 	struct ifreq ifr;
609 (void)strncpy(ifr.ifr_name, name, sizeof(ifr
610 if (ioctl(fd, BIOCSETIF, (caddr_t)&ifr) < 0) {
731 struct ifreq ifr;
788 strlcpy(ifr.ifr_name, "wlt", sizeof(ifr.ifr_name));
789 strlcat(ifr.ifr_name, p->opt.device + 2, sizeof(ifr.ifr_name));
790 if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifr) < 0) {
816 (void)strncpy(ifr.ifr_name, p->opt.device, sizeof(ifr.ifr_name));
817 if (ioctl(fd, BIOCSETIF, (caddr_t)&ifr) < 0) {
1395 struct ifreq ifr;
1434 memset(&ifr, 0, sizeof(ifr));
1435 (void)strncpy(ifr.ifr_name,
1437 sizeof(ifr.ifr_name));
1438 ifr.ifr_media =
1441 &ifr) == -1) {
1464 strlcpy(ifr.ifr_name, pb->device,
1465 sizeof(ifr.ifr_name));
1466 ioctl(s, SIOCIFDESTROY, &ifr);
1508 struct ifreq ifr;
1527 strlcpy(ifr.ifr_name, "en",
1528 sizeof(ifr.ifr_name));
1529 strlcat(ifr.ifr_name, p->opt.device + 3,
1530 sizeof(ifr.ifr_name));
1531 if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifr) < 0) {
1540 ifr.ifr_name, pcap_strerror(errno));
1621 struct lifreq ifr;
1622 char *ifrname = ifr.lifr_name;
1623 const size_t ifnamsiz = sizeof(ifr.lifr_name);
1625 struct ifreq ifr;
1626 char *ifrname = ifr.ifr_name;
1627 const size_t ifnamsiz = sizeof(ifr.ifr_name);
1679 if ((ifr.lifr_zoneid = getzoneid()) == -1) {
1697 if (ifr.lifr_zoneid != GLOBAL_ZONEID) {
1705 ifr.lifr_zoneid = getzoneidbyname(path_zname);
1706 if (ifr.lifr_zoneid == -1) {
1773 (char *)&ifr) < 0) {
1873 strlcpy(ifr.ifr_name, p->opt.device, sizeof(ifr.ifr_name));
1874 if (ioctl(s, SIOCIFCREATE2, &ifr) < 0) {
1968 if (ioctl(fd, BIOCSETIF, (caddr_t)&ifr) < 0) {
2000 if (ioctl(fd, BIOCSETLIF, (caddr_t)&ifr) < 0)
2002 if (ioctl(fd, BIOCSETIF, (caddr_t)&ifr) < 0)
2033 if (ioctl(fd, BIOCSETLIF, (caddr_t)&ifr) >= 0)
2035 if (ioctl(fd, BIOCSETIF, (caddr_t)&ifr) >= 0)
2683 struct ifreq ifr;
2802 memset(&ifr, 0, sizeof(ifr));
2803 (void)strncpy(ifr.ifr_name, p->opt.device,
2804 sizeof(ifr.ifr_name));
2805 ifr.ifr_media = req.ifm_current | IFM_IEEE80211_MONITOR;
2806 if (ioctl(sock, SIOCSIFMEDIA, &ifr) == -1) {