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.
380
of file components/service/bsd_socket/inc/netinet_in.h
IPTOS_PREC#
#define IPTOS_PRECValue:
(tos)
Extract the precedence field from the TOS byte.
381
of file components/service/bsd_socket/inc/netinet_in.h
IPTOS_PREC_NETCONTROL#
#define IPTOS_PREC_NETCONTROLValue:
0xe0
Indicates that the packet is designated for network control purposes, such as voice communications.
383
of file components/service/bsd_socket/inc/netinet_in.h
IPTOS_PREC_INTERNETCONTROL#
#define IPTOS_PREC_INTERNETCONTROLValue:
0xc0
Indicates that the packet is intended for internet control purposes, such as voice communications.
384
of file components/service/bsd_socket/inc/netinet_in.h
IPTOS_PREC_CRITIC_ECP#
#define IPTOS_PREC_CRITIC_ECPValue:
0xa0
Indicates that the packet is for critical applications like video communications.
385
of file components/service/bsd_socket/inc/netinet_in.h
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.
386
of file components/service/bsd_socket/inc/netinet_in.h
IPTOS_PREC_FLASH#
#define IPTOS_PREC_FLASHValue:
0x60
Indicates that the packet is of high priority, used for important but non-urgent background data.
387
of file components/service/bsd_socket/inc/netinet_in.h
IPTOS_PREC_IMMEDIATE#
#define IPTOS_PREC_IMMEDIATEValue:
0x40
Indicates that the packet should be delivered as soon as possible, suitable for background tasks.
388
of file components/service/bsd_socket/inc/netinet_in.h
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.
389
of file components/service/bsd_socket/inc/netinet_in.h
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.
390
of file components/service/bsd_socket/inc/netinet_in.h