Logo Search packages:      
Sourcecode: sofia-sip version File versions  Download package

stun_common.h File Reference


Detailed Description

Defined when <sofia-sip/stun_common.h> has been included.

Author:
Tat Chan <Tat.Chan@nokia.com>
Date:
Created: Fri Oct 3 13:39:55 2003 ppessi

Definition in file stun_common.h.

#include <sofia-sip/su_localinfo.h>

Go to the source code of this file.

Classes

struct  stun_attr_errorcode_t
struct  stun_attr_s
struct  stun_attr_uint32_s
struct  stun_attr_unknownattributes_s
struct  stun_buffer_s
struct  stun_hdr_t
struct  stun_msg_t

Defines

#define BINDING_ERROR_RESPONSE   0x0111
#define BINDING_REQUEST   0x0001
#define BINDING_RESPONSE   0x0101
#define CHANGE_REQUEST   0x0003
#define CHANGED_ADDRESS   0x0005
#define ERROR_CODE   0x0009
#define LARGEST_ATTRIBUTE   STUN_A_LAST_MANDATORY
#define MAPPED_ADDRESS   0x0001
#define MESSAGE_INTEGRITY   0x0008
#define OPTIONAL_ATTRIBUTE   STUN_A_OPTIONAL
#define PASSWORD   0x0007
#define RAND_MAX_16   65535
#define REFLECTED_FROM   0x000b
#define RESPONSE_ADDRESS   0x0002
#define SHARED_SECRET_ERROR_RESPONSE   0x0112
#define SHARED_SECRET_REQUEST   0x0002
#define SHARED_SECRET_RESPONSE   0x0102
#define SOURCE_ADDRESS   0x0004
#define STUN_400_BAD_REQUEST   400
#define STUN_401_UNAUTHORIZED   401
#define STUN_420_UNKNOWN_ATTRIBUTE   420
#define STUN_430_STALE_CREDENTIALS   430
#define STUN_431_INTEGRITY_CHECK_FAILURE   431
#define STUN_432_MISSING_USERNAME   432
#define STUN_433_USE_TLS   433
#define STUN_500_SERVER_ERROR   500
#define STUN_600_GLOBAL_FAILURE   600
#define STUN_A_ALTERNATE_SERVER   0x8023
#define STUN_A_ALTERNATE_SERVER_DEP   0x000e
#define STUN_A_BUGGYSERVER_SERVER   0x0022
#define STUN_A_BUGGYSERVER_XORONLY   0x0021
#define STUN_A_FINGERPRINT   0x0023
#define STUN_A_LAST_MANDATORY   0x0023
#define STUN_A_NONCE   0x0015
#define STUN_A_OPTIONAL   0x7fff
#define STUN_A_REALM   0x0014
#define STUN_A_REFRESH_INTERVAL   0x8024
#define STUN_A_SERVER   0x8022
#define STUN_A_XOR_MAPPED_ADDRESS   0x0020
#define STUN_CR_CHANGE_IP   0x0004
#define STUN_CR_CHANGE_PORT   0x0002
#define STUN_DEFAULT_PORT   3478
#define STUN_EC_CLASS   0x0070
#define STUN_EC_NUM   0x000F
#define STUN_MAX_RETRX   5
#define STUN_MAX_RETRX_INT   1600
#define STUN_TID_BYTES   16
#define UNKNOWN_ATTRIBUTES   0x000a
#define USERNAME   0x0006

Typedefs

typedef stun_attr_uint32_t stun_attr_changerequest_t
typedef stun_buffer_t stun_attr_password_t
typedef struct sockaddr_in stun_attr_sockaddr_t
typedef struct stun_attr_s stun_attr_t
typedef struct stun_attr_uint32_s stun_attr_uint32_t
typedef struct
stun_attr_unknownattributes_s 
stun_attr_unknownattributes_t
typedef stun_buffer_t stun_attr_username_t
typedef struct stun_buffer_s stun_buffer_t

Functions

void debug_print (stun_buffer_t *buf)
char const * stun_attr_phrase (uint16_t type)
int stun_copy_buffer (stun_buffer_t *p, stun_buffer_t *p2)
char * stun_determine_ip_address (int family)
int stun_encode_address (stun_attr_t *attr)
int stun_encode_buffer (stun_attr_t *attr)
int stun_encode_error_code (stun_attr_t *attr)
int stun_encode_message (stun_msg_t *msg, stun_buffer_t *pwd)
int stun_encode_message_integrity (stun_attr_t *attr, unsigned char *buf, int len, stun_buffer_t *pwd)
int stun_encode_response_address (stun_attr_t *attr)
int stun_encode_type_len (stun_attr_t *attr, uint16_t len)
int stun_encode_uint32 (stun_attr_t *attr)
int stun_free_buffer (stun_buffer_t *p)
int stun_free_message (stun_msg_t *msg)
stun_attr_t * stun_get_attr (stun_attr_t *attr, uint16_t attr_type)
void stun_init_buffer (stun_buffer_t *p)
int stun_init_message (stun_msg_t *msg)
int stun_parse_attr_address (stun_attr_t *attr, const unsigned char *p, unsigned len)
int stun_parse_attr_buffer (stun_attr_t *attr, const unsigned char *p, unsigned len)
int stun_parse_attr_error_code (stun_attr_t *attr, const unsigned char *p, unsigned len)
int stun_parse_attr_uint32 (stun_attr_t *attr, const unsigned char *p, unsigned len)
int stun_parse_attr_unknown_attributes (stun_attr_t *attr, const unsigned char *p, unsigned len)
int stun_parse_attribute (stun_msg_t *msg, unsigned char *p)
int stun_parse_message (stun_msg_t *msg)
char const * stun_response_phrase (int status)
int stun_validate_message_integrity (stun_msg_t *msg, stun_buffer_t *pwd)


Generated by  Doxygen 1.6.0   Back to index