fixes ipv6 compilation problems

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@329 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 19 years ago
parent 997a983594
commit 2015e9ddfd

@ -159,7 +159,7 @@ int AmRtpPacket::send(int sd)
#ifdef SUPPORT_IPV6 #ifdef SUPPORT_IPV6
if(addr.ss_family != PF_INET) if(addr.ss_family != PF_INET)
err = sendto(sd,buffer,b_size,0, err = sendto(sd,buffer,b_size,0,
(const struct sockaddr *)saddr, (const struct sockaddr *)&addr,
sizeof(struct sockaddr_in6)); sizeof(struct sockaddr_in6));
else else
#endif #endif

@ -190,7 +190,7 @@ int AmSdp::genResponse(const string& localip, int localport,
string l_ip = "IP4 " + localip; string l_ip = "IP4 " + localip;
#ifdef SUPPORT_IPV6 #ifdef SUPPORT_IPV6
if(localip.find('.') = string::npos) if(localip.find('.') == string::npos)
l_ip = "IP6 " + localip; l_ip = "IP6 " + localip;
#endif #endif

Loading…
Cancel
Save