Linux SDK (lite-qmi)  MBPL_SDK_R25_ENG3
unpack_qos_QmiCbkQosFilters_t Struct Reference

#include <qos.h>

Data Fields

uint8_t tx_qos_filters_len
 
uint8_t ip_version
 
uint64_t valid_params_ipv4
 
uint32_t ipv4_addr_1
 
uint32_t subnet_mask_1
 
uint32_t ipv4_addr_2
 
uint32_t subnet_mask_2
 
uint8_t val_ipv4
 
uint8_t mask_ipv4
 
uint64_t valid_params_ipv6
 
uint8_t ipv6_address_1 [16]
 
uint8_t prefix_len_1
 
uint8_t ipv6_address_2 [16]
 
uint8_t prefix_len_2
 
uint8_t val_ipv6
 
uint8_t mask_ipv6
 
uint32_t flow_label_ipv6
 
uint32_t xport_protocol
 
uint64_t valid_params_port_1
 
uint16_t port_1
 
uint16_t range_1
 
uint16_t port_2
 
uint16_t range_2
 
uint64_t valid_params_port_2
 
uint16_t port_3
 
uint16_t range_3
 
uint16_t port_4
 
uint16_t range_4
 
uint64_t valid_params_icmp
 
uint8_t type_icmp
 
uint8_t code_icmp
 
uint64_t valid_params_spi_1
 
uint32_t spi_1
 
uint64_t valid_params_spi_2
 
uint32_t spi_2
 
uint16_t filter_id
 
uint16_t filter_precedence
 

Detailed Description

Structure that contains the QoS Filters

Parameters
tx_qos_filters_len
  • Number of sets of the following elements
ip_version
  • Depending on the IP version set, either the IPv4 or the IPv6 information is valid.
    • Values:
      • QOS_IP_FAMILY_IPV4 (0x04) - IPv4 family.
      • QOS_IP_FAMILY_IPV6 (0x06) - IPv6 family.
valid_params_ipv4
  • The bits set in this mask denote which parameters contain valid values.
    • Values:
      • QMI_QOS_IPV4_FILTER_MASK_NONE (0x0000000000000000) - No parameters
      • QMI_QOS_IPV4_FILTER_MASK_SRC_ADDR (0x0000000000000001) - IPv4 source address
      • QMI_QOS_IPV4_FILTER_MASK_DEST_ADDR (0x0000000000000002) - IPv4 destination address
      • QMI_QOS_IPV4_FILTER_MASK_TOS (0x0000000000000004) - IPv4 type of service
ipv4_addr_1
  • IPv4 address.
subnet_mask_1
  • IPv4 subnet mask.
ipv4_addr_2
  • IPv4 address.
subnet_mask_2
  • IPv4 subnet mask.
val_ipv4
  • Type of service value.
mask_ipv4
  • Type of service mask.
valid_params_ipv6
  • The bits set in this mask denote which parameters contain valid values.
    • Values:
      • QMI_QOS_IPV6_FILTER_MASK_NONE (0x0000000000000000) - No parameters
      • QMI_QOS_IPV6_FILTER_MASK_SRC_ADDR (0x0000000000000001) - IPv6 source address
      • QMI_QOS_IPV6_FILTER_MASK_DEST_ADDR (0x0000000000000002) - IPv6 destination address
      • QMI_QOS_IPV6_FILTER_MASK_TRAFFIC_CLASS (0x0000000000000004) - IPv6 traffic class
      • QMI_QOS_IPV6_FILTER_MASK_FLOW_LABEL (0x0000000000000008) - IPv6 flow label
ipv6_address_1[16]
  • IPv6 address.
prefix_len_1
  • IPv6 address prefix length.
ipv6_address_2[16]
  • IPv6 address.
prefix_len_2
  • IPv6 address prefix length.
val_ipv6
  • Traffic class value.
mask_ipv6
  • Traffic class mask.
flow_label_ipv6
  • IPv6 flow label.
xport_protocol
  • Depending on the value in xport_protocol, only one field of icmp_info, tcp_info, udp_info, esp_info, or ah_info is valid.
  • QOS_PROTO_NONE implies that no transport level protocol parameters are valid.
    • Values:
      • QOS_PROTO_NONE (0x00) - No transport protocol
      • QOS_PROTO_ICMP (0x01) - Internet Control Messaging Protocol
      • QOS_PROTO_TCP (0x06) - Transmission Control Protocol
      • QOS_PROTO_UDP (0x11) - User Datagram Protocol
      • QOS_PROTO_ESP (0x32) - Encapsulating Security Payload Protocol
      • QOS_PROTO_AH (0x33) - Authentication Header Protocol
      • QOS_PROTO_ICMPV6 (0x3A) - Internet Control Messaging Protocol for IPV6
valid_params_port_1
  • The bits set in this mask denote which parameters contain valid values.
    • Values:
      • QMI_QOS_PORT_INFO_FILTER_MASK_NONE (0x0000000000000000) - No parameters
      • QMI_QOS_PORT_INFO_FILTER_MASK_SRC_PORT (0x0000000000000001) - Source port
      • QMI_QOS_PORT_INFO_FILTER_MASK_DEST_PORT (0x0000000000000002) - Destination port
port_1
range_1
  • range
port_2
range_2
  • range
valid_params_port_2
  • The bits set in this mask denote which parameters contain valid values.
    • Values:
      • QMI_QOS_PORT_INFO_FILTER_MASK_NONE (0x0000000000000000) - No parameters
      • QMI_QOS_PORT_INFO_FILTER_MASK_SRC_PORT (0x0000000000000001) - Source port
      • QMI_QOS_PORT_INFO_FILTER_MASK_DEST_PORT (0x0000000000000002) - Destination port
port_3
range_3
  • range
port_4
range_4
  • Range
valid_params_icmp
  • The bits set in this mask denote which parameters contain valid values.
    • Values:
      • QMI_QOS_ICMP_FILTER_MASK_NONE (0x0000000000000000) - No parameters
      • QMI_QOS_ICMP_FILTER_MASK_MSG_TYPE (0x0000000000000001) - Message type
      • QMI_QOS_ICMP_FILTER_MASK_MSG_CODE (0x0000000000000002) - Message code
type_icmp
  • ICMP type.
code_icmp
  • ICMP code.
valid_params_spi_1
  • The bits set in this mask denote which parameters contain valid values.
    • Values:
      • QMI_QOS_IPSEC_FILTER_MASK_NONE (0x0000000000000000) - No parameters
      • QMI_QOS_IPSEC_FILTER_MASK_SPI (0x0000000000000001) - Security parameter index
spi_1
  • Security parameter index for IPSec.
valid_params_spi_2
  • The bits set in this mask denote which parameters contain valid values.
    • Values:
      • QMI_QOS_IPSEC_FILTER_MASK_NONE (0x0000000000000000) - No parameters
      • QMI_QOS_IPSEC_FILTER_MASK_SPI (0x0000000000000001) - Security parameter index
spi_2
  • Security parameter index for IPSec.
filter_id
  • Unique identifier for each filter.
filter_precedence
  • Specifies the order in which filters are applied. A lower numerical value has a higher precedence

The documentation for this struct was generated from the following file: