Changeset 2234 for pjproject/trunk/pjnath/include/pjnath/stun_msg.h
- Timestamp:
- Aug 22, 2008 5:46:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/include/pjnath/stun_msg.h
r2044 r2234 291 291 PJ_STUN_ATTR_LIFETIME = 0x000D,/**< TURN LIFETIME attr. */ 292 292 PJ_STUN_ATTR_MAGIC_COOKIE = 0x000F,/**< MAGIC-COOKIE attr (deprec)*/ 293 PJ_STUN_ATTR_BANDWIDTH = 0x0010,/**< TURN BANDWIDTH attr.*/293 PJ_STUN_ATTR_BANDWIDTH = 0x0010,/**< TURN BANDWIDTH (deprec) */ 294 294 PJ_STUN_ATTR_PEER_ADDR = 0x0012,/**< TURN PEER-ADDRESS attr. */ 295 295 PJ_STUN_ATTR_DATA = 0x0013,/**< DATA attribute. */ 296 296 PJ_STUN_ATTR_REALM = 0x0014,/**< REALM attribute. */ 297 297 PJ_STUN_ATTR_NONCE = 0x0015,/**< NONCE attribute. */ 298 PJ_STUN_ATTR_RELAY _ADDR = 0x0016,/**< RELAY-ADDRESS attribute.*/298 PJ_STUN_ATTR_RELAYED_ADDR = 0x0016,/**< RELAYED-ADDRESS attribute.*/ 299 299 PJ_STUN_ATTR_REQ_ADDR_TYPE = 0x0017,/**< REQUESTED-ADDRESS-TYPE */ 300 300 PJ_STUN_ATTR_REQ_PROPS = 0x0018,/**< REQUESTED-PROPS */ … … 306 306 PJ_STUN_ATTR_PRIORITY = 0x0024,/**< PRIORITY */ 307 307 PJ_STUN_ATTR_USE_CANDIDATE = 0x0025,/**< USE-CANDIDATE */ 308 PJ_STUN_ATTR_ XOR_INTERNAL_ADDR = 0x0026,/**< XOR-INTERNAL-ADDRESS*/308 PJ_STUN_ATTR_ICMP = 0x0030,/**< ICMP (TURN) */ 309 309 310 310 PJ_STUN_ATTR_END_MANDATORY_ATTR, … … 312 312 PJ_STUN_ATTR_START_EXTENDED_ATTR= 0x8021, 313 313 314 PJ_STUN_ATTR_S ERVER = 0x8022,/**< SERVERattribute. */314 PJ_STUN_ATTR_SOFTWARE = 0x8022,/**< SOFTWARE attribute. */ 315 315 PJ_STUN_ATTR_ALTERNATE_SERVER = 0x8023,/**< ALTERNATE-SERVER. */ 316 316 PJ_STUN_ATTR_REFRESH_INTERVAL = 0x8024,/**< REFRESH-INTERVAL. */ … … 346 346 PJ_STUN_SC_STALE_NONCE = 438, /**< Stale Nonce */ 347 347 PJ_STUN_SC_TRANSITIONING = 439, /**< Transitioning. */ 348 PJ_STUN_SC_WRONG_CREDENTIALS = 441, /**< TURN Wrong Credentials */ 348 349 PJ_STUN_SC_UNSUPP_TRANSPORT_PROTO = 442, /**< Unsupported Transport or 349 350 Protocol (TURN) */ … … 515 516 /** 516 517 * This structure represents generic STUN string attributes, such as STUN 517 * USERNAME, PASSWORD, SERVER, REALM, and NONCE attributes. Note that for REALM and 518 * NONCE attributes, the text MUST be quoted with. 518 * USERNAME, PASSWORD, SOFTWARE, REALM, and NONCE attributes. 519 519 */ 520 520 typedef struct pj_stun_string_attr … … 740 740 741 741 /** 742 * This describes STUN SERVER attribute. 743 * The server attribute contains a textual description of the software 744 * being used by the server, including manufacturer and version number. 745 * The attribute has no impact on operation of the protocol, and serves 746 * only as a tool for diagnostic and debugging purposes. The value of 747 * SERVER is variable length. 748 */ 749 typedef struct pj_stun_string_attr pj_stun_server_attr; 742 * This describes STUN SOFTWARE attribute. 743 * The SOFTWARE attribute contains a textual description of the software 744 * being used by the agent sending the message. It is used by clients 745 * and servers. Its value SHOULD include manufacturer and version 746 * number. */ 747 typedef struct pj_stun_string_attr pj_stun_software_attr; 750 748 751 749 … … 933 931 934 932 /** 935 * This describes the STUN RELAY -ADDRESS attribute.936 * The RELAY -ADDRESS is present in Allocate responses. It specifies the933 * This describes the STUN RELAYED-ADDRESS attribute. 934 * The RELAYED-ADDRESS is present in Allocate responses. It specifies the 937 935 * address and port that the server allocated to the client. It is 938 936 * encoded in the same way as XOR-MAPPED-ADDRESS. 939 937 */ 940 typedef struct pj_stun_sockaddr_attr pj_stun_relay _addr_attr;938 typedef struct pj_stun_sockaddr_attr pj_stun_relayed_addr_attr; 941 939 942 940 … … 965 963 * #PJ_STUN_SET_PROP_TYPE(). 966 964 * 967 * This attribute allows the client to request certain properties for968 * the relayed transport address that is allocated by the server. The969 * a ttribute is 32 bits long. Its format is:965 * This attribute allows the client to request that the allocation have 966 * certain properties, and by the server to indicate which properties 967 * are supported. The attribute is 32 bits long. Its format is: 970 968 971 969 \verbatim … … 982 980 * desired property. The rest of the attribute is RFFU (Reserved For 983 981 * Future Use) and MUST be set to 0 on transmission and ignored on 984 * reception. The values of the "Prop-type" field are: 985 * 986 * 0x00 (Reserved) 987 * 0x01 Even port number 988 * 0x02 Pair of ports 982 * reception. 983 * 984 * The "Prop-type" field is formatted as follows: 985 986 \verbatim 987 988 0 1 2 3 4 5 6 7 989 +-+-+-+-+-+-+-+-+ 990 |E|R|P| | 991 +-+-+-+-+-+-+-+-+ 992 993 \endverbatim 994 995 The bits in "Prop-type" are: 996 997 E: If 1, the port number for the relayed-transport-address must be 998 even. If 0, the port number can be even or odd. 999 1000 R: If 1, the server must reserve the next highest port for a 1001 subsequent allocation. If 0, no such reservation is requested. 1002 If the client sets the R bit to 1, it MUST also set the E bit to 1 1003 (however, the E bit may be 1 when the R bit is 0). 1004 1005 P: If 1, the allocation must be a Preserving allocation. If 0, the 1006 allocation can be either Preserving or Non-Preserving. 1007 989 1008 */ 990 1009 typedef struct pj_stun_uint_attr pj_stun_req_props_attr; … … 1091 1110 1092 1111 /** 1093 * This structure describes STUN XOR-INTERNAL-ADDRESS attribute from1094 * draft-wing-behave-nat-control-stun-usage-00.1095 * This attribute MUST be present in a Binding Response and may be used1096 * in other responses as well. This attribute is necessary to allow a1097 * STUN client to 'walk backwards' and communicate directly with all of1098 * the STUN-aware NATs along the path.1099 */1100 typedef pj_stun_sockaddr_attr pj_stun_xor_internal_addr_attr;1101 1102 /**1103 1112 * This describes the STUN TIMER-VAL attribute. 1104 1113 * The TIMER-VAL attribute is used only in conjunction with the Set … … 1117 1126 */ 1118 1127 typedef struct pj_stun_uint64_attr pj_stun_ice_controlled_attr; 1128 1129 /** 1130 * This describes TURN ICMP attribute 1131 */ 1132 typedef struct pj_stun_uint_attr pj_stun_icmp_attr; 1119 1133 1120 1134 /**
Note: See TracChangeset
for help on using the changeset viewer.