| 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); |