manpagez: man pages & more
html files: libnice
Home | html | info | man

STUN Constants

STUN Constants — STUN constants

Stability Level

Stable, unless otherwise indicated

Includes

#include <stun/constants.h>

Description

Various constants defining parts of the STUN and TURN protocols and on-the-wire packet formats.

Functions

Types and Values

STUN_AGENT_MAX_SAVED_IDS

#define STUN_AGENT_MAX_SAVED_IDS 200

Maximum number of simultaneously ongoing STUN transactions.


STUN_AGENT_MAX_UNKNOWN_ATTRIBUTES

#define STUN_AGENT_MAX_UNKNOWN_ATTRIBUTES 256

Maximum number of unknown attribute which can be handled in a single STUN message.


STUN_ATTRIBUTE_HEADER_LENGTH

#define STUN_ATTRIBUTE_HEADER_LENGTH STUN_ATTRIBUTE_VALUE_POS

Length of a single STUN attribute header (in bytes).


STUN_ATTRIBUTE_LENGTH_LEN

#define STUN_ATTRIBUTE_LENGTH_LEN 2

Length of the length field of a STUN attribute (in bytes).


STUN_ATTRIBUTE_LENGTH_POS

#define             STUN_ATTRIBUTE_LENGTH_POS

Offset of the length field of a STUN attribute (in bytes).


STUN_ATTRIBUTE_TYPE_LEN

#define STUN_ATTRIBUTE_TYPE_LEN 2

Length of the type field of a STUN attribute (in bytes).


STUN_ATTRIBUTE_TYPE_POS

#define STUN_ATTRIBUTE_TYPE_POS 0

Offset of the type field of a STUN attribute (in bytes).


STUN_ATTRIBUTE_VALUE_POS

#define             STUN_ATTRIBUTE_VALUE_POS

Offset of the value field of a STUN attribute (in bytes).


STUN_ID_LEN

#define STUN_ID_LEN 16

Length of the ID field of a STUN message (in bytes).


STUN_MAGIC_COOKIE

#define STUN_MAGIC_COOKIE 0x2112A442

Magic cookie value used to identify STUN messages.


STUN_MAX_MESSAGE_SIZE

#define STUN_MAX_MESSAGE_SIZE 65552

The Maximum size of a STUN message


STUN_MAX_MESSAGE_SIZE_IPV4

#define STUN_MAX_MESSAGE_SIZE_IPV4 576

Maximum size of a STUN message sent over IPv4 (in bytes).


STUN_MAX_MESSAGE_SIZE_IPV6

#define STUN_MAX_MESSAGE_SIZE_IPV6 1280

Maximum size of a STUN message sent over IPv6 (in bytes).


STUN_MESSAGE_ATTRIBUTES_POS

#define             STUN_MESSAGE_ATTRIBUTES_POS

Offset of the attributes of a STUN message (in bytes).


STUN_MESSAGE_HEADER_LENGTH

#define STUN_MESSAGE_HEADER_LENGTH STUN_MESSAGE_ATTRIBUTES_POS

Total length of a STUN message header (in bytes).


STUN_MESSAGE_LENGTH_LEN

#define STUN_MESSAGE_LENGTH_LEN 2

Length of the length field of a STUN message (in bytes).


STUN_MESSAGE_LENGTH_POS

#define             STUN_MESSAGE_LENGTH_POS

Offset of the length field of a STUN message (in bytes).


STUN_MESSAGE_TRANS_ID_LEN

#define STUN_MESSAGE_TRANS_ID_LEN 16

Length of the transaction ID field of a STUN message (in bytes).


STUN_MESSAGE_TRANS_ID_POS

#define             STUN_MESSAGE_TRANS_ID_POS

Offset of the transaction ID field of a STUN message (in bytes).


STUN_MESSAGE_TYPE_LEN

#define STUN_MESSAGE_TYPE_LEN 2

Length of the type field of a STUN message (in bytes).


STUN_MESSAGE_TYPE_POS

#define STUN_MESSAGE_TYPE_POS 0

Offset of the type field of a STUN message (in bytes).


TURN_MAGIC_COOKIE

#define TURN_MAGIC_COOKIE 0x72c64bc6

Magic cookie value used to identify TURN messages.

© manpagez.com 2000-2022
Individual documents may contain additional copyright information.