Changeset 1126 for pjproject/trunk/pjnath/src/pjnath/stun_msg.c
- Timestamp:
- Apr 2, 2007 11:30:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath/stun_msg.c
r1114 r1126 140 140 141 141 142 st ruct attr_desc mandatory_attr_desc[] =142 static struct attr_desc mandatory_attr_desc[] = 143 143 { 144 144 { … … 438 438 { 439 439 /* PJ_STUN_ATTR_ICE_CONTROLLED, */ 440 "ICE-C CONTROLLED",440 "ICE-CONTROLLED", 441 441 &decode_uint64_attr, 442 442 &encode_uint64_attr … … 444 444 { 445 445 /* PJ_STUN_ATTR_ICE_CONTROLLING, */ 446 "ICE-C CONTROLLING",446 "ICE-CONTROLLING", 447 447 &decode_uint64_attr, 448 448 &encode_uint64_attr … … 1871 1871 /* Already has MESSAGE-INTEGRITY */ 1872 1872 if (p_response) { 1873 pj_str_t e;1874 e = pj_str("MESSAGE-INTEGRITY already present");1875 1873 pj_stun_msg_create_response(pool, msg, 1876 1874 PJ_STUN_SC_BAD_REQUEST, … … 1885 1883 /* Already has FINGERPRINT */ 1886 1884 if (p_response) { 1887 pj_str_t e;1888 e = pj_str("FINGERPRINT already present");1889 1885 pj_stun_msg_create_response(pool, msg, 1890 1886 PJ_STUN_SC_BAD_REQUEST, … … 1899 1895 * after FINGERPRINT or MESSAGE-INTEGRITY */ 1900 1896 if (p_response) { 1901 pj_str_t e;1902 e = pj_str("Invalid attribute order");1903 1897 pj_stun_msg_create_response(pool, msg, 1904 1898 PJ_STUN_SC_BAD_REQUEST, … … 1913 1907 if (msg->attr_count >= PJ_STUN_MAX_ATTR) { 1914 1908 if (p_response) { 1915 pj_str_t e;1916 1917 e = pj_str("Too many attributes");1918 1909 pj_stun_msg_create_response(pool, msg, 1919 1910 PJ_STUN_SC_BAD_REQUEST, 1920 &e, p_response);1911 NULL, p_response); 1921 1912 } 1922 1913 return PJNATH_ESTUNTOOMANYATTR;
Note: See TracChangeset
for help on using the changeset viewer.