Linux SDK (lite-qmi)  MBPL_SDK_R25_ENG3
Tos Struct Reference

#include <qaGobiApiQos.h>

Data Fields

BYTE val
 
BYTE mask
 

Detailed Description

This structure contains the IPv4 filter type of service

Parameters
valType of service value
maskPacket matches the TOS filter if: (IPv4_filter_tos_val and IPv4_filter_tos_mask) == (TOS value in the IP packet & IPv4_filter_tos_mask) Example:
  • IPv4_filter_tos_val = 00101000
  • IPv4_filter_tos_mask = 11111100 The filter will compare only the first 6 bits in the IPv4_filter_type_of_service with the first 6 bits in the TOS field of the IP packet. The first 6 bits in the TOS field of the IP packet must be 001010 to match the filter. The last 2 bits can be anything since they are ignored by filtering.

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