Changeset 1450 for pjproject/trunk/pjnath/src/pjnath/ice_strans.c
- Timestamp:
- Sep 24, 2007 7:46:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath/ice_strans.c
r1434 r1450 591 591 592 592 /* Send STUN binding request */ 593 PJ_LOG(5,(ice_st->obj_name, "Sending STUN keep-alive")); 593 PJ_LOG(5,(ice_st->obj_name, "Sending STUN keep-alive from %s;%d", 594 pj_inet_ntoa(comp->local_addr.ipv4.sin_addr), 595 pj_ntohs(comp->local_addr.ipv4.sin_port))); 594 596 status = pj_stun_session_send_msg(comp->stun_sess, PJ_FALSE, 595 597 &ice_st->stun_srv, … … 1138 1140 } 1139 1141 1142 /* Save IP address for logging */ 1143 pj_ansi_strcpy(ip, pj_inet_ntoa(comp->local_addr.ipv4.sin_addr)); 1144 1140 1145 /* Ignore response if it reports the same address */ 1141 if (c and->addr.ipv4.sin_addr.s_addr == mapped_addr->ipv4.sin_addr.s_addr &&1142 c and->addr.ipv4.sin_port == mapped_addr->ipv4.sin_port)1146 if (comp->local_addr.ipv4.sin_addr.s_addr == mapped_addr->ipv4.sin_addr.s_addr && 1147 comp->local_addr.ipv4.sin_port == mapped_addr->ipv4.sin_port) 1143 1148 { 1149 PJ_LOG(4,(comp->ice_st->obj_name, 1150 "Candidate %s:%d is directly connected to Internet, " 1151 "STUN mapped address is ignored", 1152 ip, pj_ntohs(comp->local_addr.ipv4.sin_port))); 1144 1153 return; 1145 1154 } 1146 1147 pj_ansi_strcpy(ip, pj_inet_ntoa(comp->local_addr.ipv4.sin_addr));1148 1155 1149 1156 PJ_LOG(4,(comp->ice_st->obj_name,
Note: See TracChangeset
for help on using the changeset viewer.