Home | History | Annotate | Download | only in rp-pppoe

Lines Matching defs:ifr

105     struct ifreq ifr;
138 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
139 if (ioctl(fd, SIOCGIFHWADDR, &ifr) < 0) {
142 memcpy(hwaddr, ifr.ifr_hwaddr.sa_data, ETH_ALEN);
144 if (ifr.ifr_hwaddr.sa_family != ARPHRD_ETHER) {
160 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
161 if (ioctl(fd, SIOCGIFMTU, &ifr) < 0) {
164 if (ifr.ifr_mtu < ETH_DATA_LEN) {
166 ifname, ifr.ifr_mtu, ETH_DATA_LEN);
175 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
176 if (ioctl(fd, SIOCGIFINDEX, &ifr) < 0) {
179 sa.sll_ifindex = ifr.ifr_ifindex;