TOS Defines#
Macros to configure the Type of Service (TOS) values.
These macros are used to define and manipulate the precedence field in the TOS byte, which indicates the priority and type of data for network packets.
Macros#
Mask to extract the precedence field from the TOS byte.
Extract the precedence field from the TOS byte.
Indicates that the packet is designated for network control purposes, such as voice communications.
Indicates that the packet is intended for internet control purposes, such as voice communications.
Indicates that the packet is for critical applications like video communications.
Indicates that the packet should override other traffic, used for urgent applications such as time-sensitive video streaming.
Indicates that the packet is of high priority, used for important but non-urgent background data.
Indicates that the packet should be delivered as soon as possible, suitable for background tasks.
Indicates that the packet has a higher priority than routine data but is less urgent than immediate delivery.
Indicates that the packet is of routine and has the lowest priority, suitable for best-effort data.
Macro Definition Documentation#
IPTOS_PREC_MASK#
#define IPTOS_PREC_MASKValue:
0xE0
Mask to extract the precedence field from the TOS byte.
IPTOS_PREC_NETCONTROL#
#define IPTOS_PREC_NETCONTROLValue:
0xe0
Indicates that the packet is designated for network control purposes, such as voice communications.
IPTOS_PREC_INTERNETCONTROL#
#define IPTOS_PREC_INTERNETCONTROLValue:
0xc0
Indicates that the packet is intended for internet control purposes, such as voice communications.
IPTOS_PREC_CRITIC_ECP#
#define IPTOS_PREC_CRITIC_ECPValue:
0xa0
Indicates that the packet is for critical applications like video communications.
IPTOS_PREC_FLASHOVERRIDE#
#define IPTOS_PREC_FLASHOVERRIDEValue:
0x80
Indicates that the packet should override other traffic, used for urgent applications such as time-sensitive video streaming.
IPTOS_PREC_FLASH#
#define IPTOS_PREC_FLASHValue:
0x60
Indicates that the packet is of high priority, used for important but non-urgent background data.
IPTOS_PREC_IMMEDIATE#
#define IPTOS_PREC_IMMEDIATEValue:
0x40
Indicates that the packet should be delivered as soon as possible, suitable for background tasks.
IPTOS_PREC_PRIORITY#
#define IPTOS_PREC_PRIORITYValue:
0x20
Indicates that the packet has a higher priority than routine data but is less urgent than immediate delivery.
IPTOS_PREC_ROUTINE#
#define IPTOS_PREC_ROUTINEValue:
0x00
Indicates that the packet is of routine and has the lowest priority, suitable for best-effort data.