summaryrefslogtreecommitdiff
path: root/pjsip
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-03-18 17:39:27 +0000
committerBenny Prijono <bennylp@teluu.com>2007-03-18 17:39:27 +0000
commit25c436a6432ebac429285c81f990653a4c52dd3c (patch)
tree8f145c79bd09aa7bd7390100f809ca72bf2f069b /pjsip
parent331af12f95e6c79555ce45e5ea9c387fd70915dc (diff)
Changed pj_sockaddr structure and added pjnath project for ICE/STUN stuffs
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1080 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r--pjsip/src/pjsip/sip_transport.c4
-rw-r--r--pjsip/src/pjsip/sip_transport_tcp.c2
-rw-r--r--pjsip/src/pjsip/sip_transport_udp.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/pjsip/src/pjsip/sip_transport.c b/pjsip/src/pjsip/sip_transport.c
index 2229a2ba..62382169 100644
--- a/pjsip/src/pjsip/sip_transport.c
+++ b/pjsip/src/pjsip/sip_transport.c
@@ -567,7 +567,7 @@ PJ_DEF(pj_status_t) pjsip_transport_send( pjsip_transport *tr,
tdata->tp_info.transport = tr;
pj_memcpy(&tdata->tp_info.dst_addr, addr, addr_len);
tdata->tp_info.dst_addr_len = addr_len;
- if (((pj_sockaddr*)addr)->sa_family == PJ_AF_INET) {
+ if (((pj_sockaddr*)addr)->addr.sa_family == PJ_AF_INET) {
const char *str_addr;
str_addr = pj_inet_ntoa(((pj_sockaddr_in*)addr)->sin_addr);
pj_ansi_strcpy(tdata->tp_info.dst_name, str_addr);
@@ -1361,7 +1361,7 @@ PJ_DEF(pj_status_t) pjsip_tpmgr_acquire_transport(pjsip_tpmgr *mgr,
/* For datagram INET transports, try lookup with zero address.
*/
else if ((flag & PJSIP_TRANSPORT_DATAGRAM) &&
- (remote_addr->sa_family == PJ_AF_INET))
+ (remote_addr->addr.sa_family == PJ_AF_INET))
{
pj_sockaddr_in *addr = (pj_sockaddr_in*)&key.addr;
diff --git a/pjsip/src/pjsip/sip_transport_tcp.c b/pjsip/src/pjsip/sip_transport_tcp.c
index 8aa679d4..481387c0 100644
--- a/pjsip/src/pjsip/sip_transport_tcp.c
+++ b/pjsip/src/pjsip/sip_transport_tcp.c
@@ -786,7 +786,7 @@ static pj_status_t lis_create_transport(pjsip_tpfactory *factory,
addr_len && p_transport, PJ_EINVAL);
/* Check that address is a sockaddr_in */
- PJ_ASSERT_RETURN(rem_addr->sa_family == PJ_AF_INET &&
+ PJ_ASSERT_RETURN(rem_addr->addr.sa_family == PJ_AF_INET &&
addr_len == sizeof(pj_sockaddr_in), PJ_EINVAL);
diff --git a/pjsip/src/pjsip/sip_transport_udp.c b/pjsip/src/pjsip/sip_transport_udp.c
index 216f2cf0..48d2b2d5 100644
--- a/pjsip/src/pjsip/sip_transport_udp.c
+++ b/pjsip/src/pjsip/sip_transport_udp.c
@@ -469,7 +469,7 @@ PJ_DEF(pj_status_t) pjsip_udp_transport_attach( pjsip_endpoint *endpt,
tp->base.key.type = PJSIP_TRANSPORT_UDP;
/* Remote address is left zero (except the family) */
- tp->base.key.rem_addr.sa_family = PJ_AF_INET;
+ tp->base.key.rem_addr.addr.sa_family = PJ_AF_INET;
/* Type name. */
tp->base.type_name = "UDP";