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