Lines Matching refs:interface_details
9381 struct necp_interface_details interface_details = {}; in necp_client_copy_interface() local
9384 uap->buffer_size < sizeof(interface_details) || in necp_client_copy_interface()
9412 strlcpy((char *)&interface_details.name, interface->if_xname, sizeof(interface_details.name)); in necp_client_copy_interface()
9414 interface_details.index = interface->if_index; in necp_client_copy_interface()
9415 interface_details.generation = ifnet_get_generation(interface); in necp_client_copy_interface()
9417 interface_details.delegate_index = interface->if_delegated.ifp->if_index; in necp_client_copy_interface()
9419 interface_details.functional_type = if_functional_type(interface, TRUE); in necp_client_copy_interface()
9421 interface_details.flags |= NECP_INTERFACE_FLAG_EXPENSIVE; in necp_client_copy_interface()
9424 interface_details.flags |= NECP_INTERFACE_FLAG_CONSTRAINED; in necp_client_copy_interface()
9427 interface_details.flags |= NECP_INTERFACE_FLAG_ULTRA_CONSTRAINED; in necp_client_copy_interface()
9430 interface_details.flags |= NECP_INTERFACE_FLAG_TXSTART; in necp_client_copy_interface()
9433 interface_details.flags |= NECP_INTERFACE_FLAG_NOACKPRI; in necp_client_copy_interface()
9436 interface_details.flags |= NECP_INTERFACE_FLAG_3CARRIERAGG; in necp_client_copy_interface()
9439 interface_details.flags |= NECP_INTERFACE_FLAG_IS_LOW_POWER; in necp_client_copy_interface()
9442 interface_details.flags |= NECP_INTERFACE_FLAG_MPK_LOG; in necp_client_copy_interface()
9445 interface_details.flags |= NECP_INTERFACE_FLAG_SUPPORTS_MULTICAST; in necp_client_copy_interface()
9448 interface_details.flags |= NECP_INTERFACE_FLAG_HAS_NAT64; in necp_client_copy_interface()
9450 interface_details.mtu = interface->if_mtu; in necp_client_copy_interface()
9452 fsw_get_tso_capabilities(interface, &interface_details.tso_max_segment_size_v4, in necp_client_copy_interface()
9453 &interface_details.tso_max_segment_size_v6); in necp_client_copy_interface()
9455 interface_details.hwcsum_flags = interface->if_hwassist & IFNET_CHECKSUMF; in necp_client_copy_interface()
9458 u_int8_t ipv4_signature_len = sizeof(interface_details.ipv4_signature.signature); in necp_client_copy_interface()
9461 (u_int8_t *)&interface_details.ipv4_signature) != 0) { in necp_client_copy_interface()
9464 interface_details.ipv4_signature.signature_len = ipv4_signature_len; in necp_client_copy_interface()
9476 interface_details.flags |= NECP_INTERFACE_FLAG_IPV4_ROUTABLE; in necp_client_copy_interface()
9490 interface_details.flags |= NECP_INTERFACE_FLAG_IPV6_ROUTABLE; in necp_client_copy_interface()
9496 u_int8_t ipv6_signature_len = sizeof(interface_details.ipv6_signature.signature); in necp_client_copy_interface()
9499 (u_int8_t *)&interface_details.ipv6_signature) != 0) { in necp_client_copy_interface()
9502 interface_details.ipv6_signature.signature_len = ipv6_signature_len; in necp_client_copy_interface()
9509 interface_details.flags |= NECP_INTERFACE_FLAG_HAS_NETMASK; in necp_client_copy_interface()
9510 interface_details.ipv4_netmask = (ifatoia(ifa))->ia_sockmask.sin_addr.s_addr; in necp_client_copy_interface()
9512 interface_details.flags |= NECP_INTERFACE_FLAG_HAS_BROADCAST; in necp_client_copy_interface()
9513 interface_details.ipv4_broadcast = (ifatoia(ifa))->ia_broadaddr.sin_addr.s_addr; in necp_client_copy_interface()
9519 interface_details.radio_type = interface->if_radio_type; in necp_client_copy_interface()
9520 if (interface_details.radio_type == 0 && interface->if_delegated.ifp) { in necp_client_copy_interface()
9521 interface_details.radio_type = interface->if_delegated.ifp->if_radio_type; in necp_client_copy_interface()
9530 error = copyout(&interface_details, uap->buffer, sizeof(interface_details)); in necp_client_copy_interface()