Linux SDK (lite-qmi)  MBPL_SDK_R25_ENG3
unpack_qos_QosFilterSpecs_t Struct Reference

#include <qos.h>

Data Fields

uint8_t ip_version
 
uint64_t ipv4_valid_params
 
uint32_t ipv4_addr_1
 
uint32_t ipv4_subnet_mask_1
 
uint32_t ipv4_addr_2
 
uint32_t ipv4_subnet_mask_2
 
uint8_t ipv4_val
 
uint8_t ipv4_mask
 
uint64_t ipv6_valid_params
 
uint8_t ipv6_address_1 [16]
 
uint8_t ipv6_prefix_len_1
 
uint8_t ipv6_address_2 [16]
 
uint8_t ipv6_prefix_len_2
 
uint8_t ipv6_val
 
uint8_t ipv6_mask
 
uint32_t ipv6_flow_label
 
uint32_t ipv6_xport_protocol
 
uint64_t port_valid_params_1
 
uint16_t src_port_1
 
uint16_t src_range_1
 
uint16_t des_port_1
 
uint16_t des_range_1
 
uint64_t port_valid_params_2
 
uint16_t src_port_2
 
uint16_t src_range_2
 
uint16_t des_port_2
 
uint16_t des_range_2
 
uint64_t icmp_valid_params
 
uint8_t icmp_type
 
uint8_t icmp_code
 
uint64_t ipsec_valid_params
 
uint32_t ipsec_spi
 
uint64_t ipsec_valid_params_2
 
uint32_t ipsec_spi_2
 
uint16_t ipsec_filter_id
 
uint16_t filter_precedence
 

Detailed Description

This structure contains the QoS Filter Specs

Parameters
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.
ipv4_valid_params
  • 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.
ipv4_subnet_mask_1
  • IPv4 subnet mask.
ipv4_addr_2
  • IPv4 address.
ipv4_subnet_mask_2
  • IPv4 subnet mask.
ipv4_val
  • Type of service value.
ipv4_mask
  • Type of service mask.
ipv6_valid_params
  • 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
  • IPv6 address.
ipv6_prefix_len_1
  • IPv6 address prefix length.
ipv6_address_2
  • IPv6 address.
ipv6_prefix_len_2
  • IPv6 address prefix length.
ipv6_val
  • Traffic class value.
ipv6_mask
  • Traffic class mask.
ipv6_flow_label
  • IPv6 flow label.
ipv6_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
port_valid_params
  • 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
src_port
src_range
  • Range
des_port
des_range
  • Range
valid_params_4
  • 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
icmp_valid_params
  • 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
icmp_type
  • ICMP type.
icmp_code
  • ICMP code.
ipsec_valid_params
  • 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
ipsec_spi
  • Security parameter index for IPSec.
ipsec_valid_params_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
ipsec_spi_2
  • Security parameter index for IPSec.
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: