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#

#define

Mask to extract the precedence field from the TOS byte.

#define

Extract the precedence field from the TOS byte.

#define

Indicates that the packet is designated for network control purposes, such as voice communications.

#define

Indicates that the packet is intended for internet control purposes, such as voice communications.

#define

Indicates that the packet is for critical applications like video communications.

#define

Indicates that the packet should override other traffic, used for urgent applications such as time-sensitive video streaming.

#define

Indicates that the packet is of high priority, used for important but non-urgent background data.

#define

Indicates that the packet should be delivered as soon as possible, suitable for background tasks.

#define

Indicates that the packet has a higher priority than routine data but is less urgent than immediate delivery.

#define

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_MASK
Value:
0xE0

Mask to extract the precedence field from the TOS byte.


Definition at line 380 of file components/service/bsd_socket/inc/netinet_in.h

IPTOS_PREC#

#define IPTOS_PREC
Value:
(tos)

Extract the precedence field from the TOS byte.


Definition at line 381 of file components/service/bsd_socket/inc/netinet_in.h

IPTOS_PREC_NETCONTROL#

#define IPTOS_PREC_NETCONTROL
Value:
0xe0

Indicates that the packet is designated for network control purposes, such as voice communications.


Definition at line 383 of file components/service/bsd_socket/inc/netinet_in.h

IPTOS_PREC_INTERNETCONTROL#

#define IPTOS_PREC_INTERNETCONTROL
Value:
0xc0

Indicates that the packet is intended for internet control purposes, such as voice communications.


Definition at line 384 of file components/service/bsd_socket/inc/netinet_in.h

IPTOS_PREC_CRITIC_ECP#

#define IPTOS_PREC_CRITIC_ECP
Value:
0xa0

Indicates that the packet is for critical applications like video communications.


Definition at line 385 of file components/service/bsd_socket/inc/netinet_in.h

IPTOS_PREC_FLASHOVERRIDE#

#define IPTOS_PREC_FLASHOVERRIDE
Value:
0x80

Indicates that the packet should override other traffic, used for urgent applications such as time-sensitive video streaming.


Definition at line 386 of file components/service/bsd_socket/inc/netinet_in.h

IPTOS_PREC_FLASH#

#define IPTOS_PREC_FLASH
Value:
0x60

Indicates that the packet is of high priority, used for important but non-urgent background data.


Definition at line 387 of file components/service/bsd_socket/inc/netinet_in.h

IPTOS_PREC_IMMEDIATE#

#define IPTOS_PREC_IMMEDIATE
Value:
0x40

Indicates that the packet should be delivered as soon as possible, suitable for background tasks.


Definition at line 388 of file components/service/bsd_socket/inc/netinet_in.h

IPTOS_PREC_PRIORITY#

#define IPTOS_PREC_PRIORITY
Value:
0x20

Indicates that the packet has a higher priority than routine data but is less urgent than immediate delivery.


Definition at line 389 of file components/service/bsd_socket/inc/netinet_in.h

IPTOS_PREC_ROUTINE#

#define IPTOS_PREC_ROUTINE
Value:
0x00

Indicates that the packet is of routine and has the lowest priority, suitable for best-effort data.


Definition at line 390 of file components/service/bsd_socket/inc/netinet_in.h