Mercurial > pidgin.yaz
comparison src/stun.c @ 12757:e2f1f49fad1a
[gaim-migrate @ 15104]
forgot this
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sat, 07 Jan 2006 22:19:43 +0000 |
parents | 6ef1cdc26b40 |
children | a7bf698eb37c |
comparison
equal
deleted
inserted
replaced
12756:6ef1cdc26b40 | 12757:e2f1f49fad1a |
---|---|
222 ip = inet_ntoa(in); | 222 ip = inet_ntoa(in); |
223 if(ip) | 223 if(ip) |
224 strcpy(nattype.publicip, ip); | 224 strcpy(nattype.publicip, ip); |
225 } | 225 } |
226 | 226 |
227 tmp += attrib->len; | 227 tmp += ntohs(attrib->len); |
228 } | 228 } |
229 gaim_debug_info("stun", "got public ip %s\n", nattype.publicip); | 229 gaim_debug_info("stun", "got public ip %s\n", nattype.publicip); |
230 nattype.status = GAIM_STUN_STATUS_DISCOVERED; | 230 nattype.status = GAIM_STUN_STATUS_DISCOVERED; |
231 nattype.type = GAIM_STUN_NAT_TYPE_UNKNOWN_NAT; | 231 nattype.type = GAIM_STUN_NAT_TYPE_UNKNOWN_NAT; |
232 nattype.lookup_time = time(NULL); | 232 nattype.lookup_time = time(NULL); |