LinuxQMISDK: Tos Struct Reference

LinuxQMISDK SLQS03.03.07

- Main Page
- Modules
- References
- Data Structures

- Data Structures
- Data Fields

Data Fields
Tos Struct Reference

## Data Fields
BYTE | val
BYTE | mask

## Detailed Description

This structure contains the IPv4 filter type of service

Parameters

  val | Type of service value
  mask | Packet 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.

## Field Documentation

BYTE Tos::mask

BYTE Tos::val