Lines Matching refs:interface_details

9203 	struct necp_interface_details interface_details = {};  in necp_client_copy_interface()  local
9206 uap->buffer_size < sizeof(interface_details) || in necp_client_copy_interface()
9234 strlcpy((char *)&interface_details.name, interface->if_xname, sizeof(interface_details.name)); in necp_client_copy_interface()
9236 interface_details.index = interface->if_index; in necp_client_copy_interface()
9237 interface_details.generation = ifnet_get_generation(interface); in necp_client_copy_interface()
9239 interface_details.delegate_index = interface->if_delegated.ifp->if_index; in necp_client_copy_interface()
9241 interface_details.functional_type = if_functional_type(interface, TRUE); in necp_client_copy_interface()
9243 interface_details.flags |= NECP_INTERFACE_FLAG_EXPENSIVE; in necp_client_copy_interface()
9246 interface_details.flags |= NECP_INTERFACE_FLAG_CONSTRAINED; in necp_client_copy_interface()
9249 interface_details.flags |= NECP_INTERFACE_FLAG_TXSTART; in necp_client_copy_interface()
9252 interface_details.flags |= NECP_INTERFACE_FLAG_NOACKPRI; in necp_client_copy_interface()
9255 interface_details.flags |= NECP_INTERFACE_FLAG_3CARRIERAGG; in necp_client_copy_interface()
9258 interface_details.flags |= NECP_INTERFACE_FLAG_IS_LOW_POWER; in necp_client_copy_interface()
9261 interface_details.flags |= NECP_INTERFACE_FLAG_MPK_LOG; in necp_client_copy_interface()
9264 interface_details.flags |= NECP_INTERFACE_FLAG_SUPPORTS_MULTICAST; in necp_client_copy_interface()
9267 interface_details.flags |= NECP_INTERFACE_FLAG_HAS_NAT64; in necp_client_copy_interface()
9269 interface_details.mtu = interface->if_mtu; in necp_client_copy_interface()
9271 fsw_get_tso_capabilities(interface, &interface_details.tso_max_segment_size_v4, in necp_client_copy_interface()
9272 &interface_details.tso_max_segment_size_v6); in necp_client_copy_interface()
9274 interface_details.hwcsum_flags = interface->if_hwassist & IFNET_CHECKSUMF; in necp_client_copy_interface()
9277 u_int8_t ipv4_signature_len = sizeof(interface_details.ipv4_signature.signature); in necp_client_copy_interface()
9280 (u_int8_t *)&interface_details.ipv4_signature) != 0) { in necp_client_copy_interface()
9283 interface_details.ipv4_signature.signature_len = ipv4_signature_len; in necp_client_copy_interface()
9295 interface_details.flags |= NECP_INTERFACE_FLAG_IPV4_ROUTABLE; in necp_client_copy_interface()
9309 interface_details.flags |= NECP_INTERFACE_FLAG_IPV6_ROUTABLE; in necp_client_copy_interface()
9315 u_int8_t ipv6_signature_len = sizeof(interface_details.ipv6_signature.signature); in necp_client_copy_interface()
9318 (u_int8_t *)&interface_details.ipv6_signature) != 0) { in necp_client_copy_interface()
9321 interface_details.ipv6_signature.signature_len = ipv6_signature_len; in necp_client_copy_interface()
9328 interface_details.flags |= NECP_INTERFACE_FLAG_HAS_NETMASK; in necp_client_copy_interface()
9329 interface_details.ipv4_netmask = ((struct in_ifaddr *)ifa)->ia_sockmask.sin_addr.s_addr; in necp_client_copy_interface()
9331 interface_details.flags |= NECP_INTERFACE_FLAG_HAS_BROADCAST; in necp_client_copy_interface()
9332 interface_details.ipv4_broadcast = ((struct in_ifaddr *)ifa)->ia_broadaddr.sin_addr.s_addr; in necp_client_copy_interface()
9338 interface_details.radio_type = interface->if_radio_type; in necp_client_copy_interface()
9339 if (interface_details.radio_type == 0 && interface->if_delegated.ifp) { in necp_client_copy_interface()
9340 interface_details.radio_type = interface->if_delegated.ifp->if_radio_type; in necp_client_copy_interface()
9349 error = copyout(&interface_details, uap->buffer, sizeof(interface_details)); in necp_client_copy_interface()