move stun to the core

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1038 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2006-04-04 16:50:35 +00:00
parent 48792eb5fc
commit 0fe4db12d0
6 changed files with 11 additions and 20 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ SWITCH_DECLARE(switch_stun_packet_t *)switch_stun_packet_parse(uint8_t *buf, uin
\param value the value to look up
\return a sring version of value
*/
SWITCH_DECLARE(const char *)switch_stun_value_to_name(int32_t type, int32_t value);
SWITCH_DECLARE(const char *)switch_stun_value_to_name(int32_t type, uint32_t value);
/*!
+2 -2
View File
@@ -141,7 +141,7 @@ SWITCH_DECLARE(switch_stun_packet_t *)switch_stun_packet_parse(uint8_t *buf, uin
return packet;
}
SWITCH_DECLARE(const char *)switch_stun_value_to_name(int32_t type, int32_t value)
SWITCH_DECLARE(const char *)switch_stun_value_to_name(int32_t type, uint32_t value)
{
uint32_t x = 0;
@@ -235,7 +235,7 @@ SWITCH_DECLARE(uint8_t) switch_stun_packet_attribute_add_binded_address(switch_s
i = (uint8_t *) &ip->address;
for(x = 0; x < 4 ; x++) {
i[x] = atoi(p);
i[x] = (uint8_t)atoi(p);
if ((p = strchr(p, '.'))) {
p++;
} else {