#include <qos.h>
|
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 |
|
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_subnet_mask_1 |
|
ipv4_addr_2 |
|
ipv4_subnet_mask_2 |
|
ipv4_val |
|
ipv4_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_prefix_len_1 |
- IPv6 address prefix length.
|
ipv6_address_2 |
|
ipv6_prefix_len_2 |
- IPv6 address prefix length.
|
ipv6_val |
|
ipv6_mask |
|
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 |
|
des_port |
|
des_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 |
|
port_4 |
|
range_4 |
|
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_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: