Searched refs:ifmr (Results 1 - 4 of 4) sorted by relevance

/darwin-on-arm/xnu/bsd/net/
H A Dif_media.c229 struct ifmediareq *ifmr = (struct ifmediareq *) ifr; local
304 ifmr->ifm_active = ifmr->ifm_current = ifm->ifm_cur ?
306 ifmr->ifm_mask = ifm->ifm_mask;
307 ifmr->ifm_status = 0;
308 (*ifm->ifm_status)(ifp, ifmr);
315 * them. This allows the caller to set ifmr->ifm_count
326 if (ifmr->ifm_count > usermax)
327 ifmr->ifm_count = usermax;
328 else if (ifmr
[all...]
H A Dif_vlan.c1508 struct ifmediareq ifmr; local
1511 bzero(&ifmr, sizeof(ifmr));
1512 snprintf(ifmr.ifm_name, sizeof(ifmr.ifm_name),
1514 if (ifnet_ioctl(p, 0, SIOCGIFMEDIA, &ifmr) == 0
1515 && ifmr.ifm_count > 0 && ifmr.ifm_status & IFM_AVALID) {
1518 event = (ifmr.ifm_status & IFM_ACTIVE)
1769 struct ifmediareq *ifmr; local
[all...]
H A Dif_bond.c865 struct ifmediareq ifmr; local
869 bzero(&ifmr, sizeof(ifmr));
870 if (ifnet_ioctl(ifp, 0, SIOCGIFMEDIA, &ifmr) == 0) {
871 if (ifmr.ifm_count != 0) {
872 mi.mi_status = ifmr.ifm_status;
873 mi.mi_active = ifmr.ifm_active;
2703 struct ifmediareq *ifmr; local
2726 ifmr = (struct ifmediareq *)data;
2727 ifmr
[all...]
H A Dbridgestp.c1884 struct ifmediareq ifmr; local
1889 bzero((char *)&ifmr, sizeof(ifmr));
1890 error = (*ifp->if_ioctl)(ifp, SIOCGIFMEDIA, (caddr_t)&ifmr);
1893 if (ifmr.ifm_status & IFM_ACTIVE) {
1897 ifmr.ifm_active & IFM_FDX ? 1 : 0;

Completed in 38 milliseconds