Lines Matching refs:interface_details

8533 	struct necp_interface_details interface_details = {};  in necp_client_copy_interface()  local
8536 uap->buffer_size < sizeof(interface_details) || in necp_client_copy_interface()
8564 strlcpy((char *)&interface_details.name, interface->if_xname, sizeof(interface_details.name)); in necp_client_copy_interface()
8566 interface_details.index = interface->if_index; in necp_client_copy_interface()
8567 interface_details.generation = ifnet_get_generation(interface); in necp_client_copy_interface()
8569 interface_details.delegate_index = interface->if_delegated.ifp->if_index; in necp_client_copy_interface()
8571 interface_details.functional_type = if_functional_type(interface, TRUE); in necp_client_copy_interface()
8573 interface_details.flags |= NECP_INTERFACE_FLAG_EXPENSIVE; in necp_client_copy_interface()
8576 interface_details.flags |= NECP_INTERFACE_FLAG_CONSTRAINED; in necp_client_copy_interface()
8579 interface_details.flags |= NECP_INTERFACE_FLAG_TXSTART; in necp_client_copy_interface()
8582 interface_details.flags |= NECP_INTERFACE_FLAG_NOACKPRI; in necp_client_copy_interface()
8585 interface_details.flags |= NECP_INTERFACE_FLAG_3CARRIERAGG; in necp_client_copy_interface()
8588 interface_details.flags |= NECP_INTERFACE_FLAG_IS_LOW_POWER; in necp_client_copy_interface()
8591 interface_details.flags |= NECP_INTERFACE_FLAG_MPK_LOG; in necp_client_copy_interface()
8594 interface_details.flags |= NECP_INTERFACE_FLAG_SUPPORTS_MULTICAST; in necp_client_copy_interface()
8597 interface_details.flags |= NECP_INTERFACE_FLAG_HAS_NAT64; in necp_client_copy_interface()
8599 interface_details.mtu = interface->if_mtu; in necp_client_copy_interface()
8601 u_int8_t ipv4_signature_len = sizeof(interface_details.ipv4_signature.signature); in necp_client_copy_interface()
8604 (u_int8_t *)&interface_details.ipv4_signature) != 0) { in necp_client_copy_interface()
8607 interface_details.ipv4_signature.signature_len = ipv4_signature_len; in necp_client_copy_interface()
8619 interface_details.flags |= NECP_INTERFACE_FLAG_IPV4_ROUTABLE; in necp_client_copy_interface()
8633 interface_details.flags |= NECP_INTERFACE_FLAG_IPV6_ROUTABLE; in necp_client_copy_interface()
8639 u_int8_t ipv6_signature_len = sizeof(interface_details.ipv6_signature.signature); in necp_client_copy_interface()
8642 (u_int8_t *)&interface_details.ipv6_signature) != 0) { in necp_client_copy_interface()
8645 interface_details.ipv6_signature.signature_len = ipv6_signature_len; in necp_client_copy_interface()
8652 interface_details.flags |= NECP_INTERFACE_FLAG_HAS_NETMASK; in necp_client_copy_interface()
8653 interface_details.ipv4_netmask = ((struct in_ifaddr *)ifa)->ia_sockmask.sin_addr.s_addr; in necp_client_copy_interface()
8655 interface_details.flags |= NECP_INTERFACE_FLAG_HAS_BROADCAST; in necp_client_copy_interface()
8656 interface_details.ipv4_broadcast = ((struct in_ifaddr *)ifa)->ia_broadaddr.sin_addr.s_addr; in necp_client_copy_interface()
8662 interface_details.radio_type = interface->if_radio_type; in necp_client_copy_interface()
8663 if (interface_details.radio_type == 0 && interface->if_delegated.ifp) { in necp_client_copy_interface()
8664 interface_details.radio_type = interface->if_delegated.ifp->if_radio_type; in necp_client_copy_interface()
8673 error = copyout(&interface_details, uap->buffer, sizeof(interface_details)); in necp_client_copy_interface()