Lines Matching defs:ifr
132 struct ifreq ifr;
156 strncpy(ifr.ifr_name, conn->ifName, sizeof(ifr.ifr_name));
157 if (ioctl(s, SIOCGIFMTU, &ifr) < 0) {
164 if (lcp_allowoptions[0].mru > ifr.ifr_mtu - TOTAL_OVERHEAD)
165 lcp_allowoptions[0].mru = ifr.ifr_mtu - TOTAL_OVERHEAD;
166 if (lcp_wantoptions[0].mru > ifr.ifr_mtu - TOTAL_OVERHEAD)
167 lcp_wantoptions[0].mru = ifr.ifr_mtu - TOTAL_OVERHEAD;
310 struct ifreq ifr;
329 strncpy(ifr.ifr_name, cmd, sizeof(ifr.ifr_name));
330 if (ioctl(fd, SIOCGIFINDEX, &ifr) < 0) {
333 if (ioctl(fd, SIOCGIFHWADDR, &ifr) < 0) {
336 if (ifr.ifr_hwaddr.sa_family != ARPHRD_ETHER) {