Lines Matching refs:ifr
674 struct ifreq ifr;
676 bzero(&ifr, sizeof(ifr));
677 ifr.ifr_mtu = mtu;
678 return (ifnet_ioctl(ifp, 0, SIOCSIFMTU, &ifr));
684 struct ifreq ifr;
687 bzero(&ifr, sizeof(ifr));
688 error = ifnet_ioctl(ifp, 0, SIOCGIFDEVMTU, &ifr);
690 *ifdm_p = ifr.ifr_devmtu;
906 struct ifreq ifr;
912 ifr.ifr_addr.sa_family = AF_UNSPEC;
913 ifr.ifr_addr.sa_len = ETHER_ADDR_LEN;
914 ether_addr_copy(ifr.ifr_addr.sa_data, ea_p);
916 snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s%d", ifnet_name(ifp),
919 return (ifnet_ioctl(ifp, 0, SIOCSIFLLADDR, &ifr));
2738 struct ifreq * ifr;
2746 ifr = (struct ifreq *)data;
2803 ifr->ifr_devmtu.ifdm_current = bond_device_mtu(ifp, ifb);
2804 bond_get_mtu_values(ifb, &ifr->ifr_devmtu.ifdm_min,
2805 &ifr->ifr_devmtu.ifdm_max);
2817 ifr->ifr_mtu = ifb->ifb_altmtu;
2822 error = bond_set_mtu(ifp, ifr->ifr_mtu, 1);
2826 error = bond_set_mtu(ifp, ifr->ifr_mtu, 0);
2831 ? ifr->ifr_data64 : CAST_USER_ADDR_T(ifr->ifr_data);
2903 ? ifr->ifr_data64 : CAST_USER_ADDR_T(ifr->ifr_data);