Lines Matching defs:ifm
199 struct ifmediareq ifm;
207 bzero(&ifm, sizeof(ifm));
208 strlcpy(ifm.ifm_name, name, sizeof(ifm.ifm_name));
209 if (ioctl(s, SIOCGIFMEDIA, (caddr_t)&ifm) < 0) {
212 if ((ifm.ifm_status & IFM_AVALID) == 0
213 || (ifm.ifm_status & IFM_ACTIVE) != 0) {
227 struct ifmediareq ifm;
236 bzero(&ifm, sizeof(ifm));
237 strlcpy(ifm.ifm_name, name, sizeof(ifm.ifm_name));
238 if (ioctl(s, SIOCGIFMEDIA, (caddr_t)&ifm) < 0) {
241 ifm_type = IFM_TYPE(ifm.ifm_current);