summaryrefslogtreecommitdiff
path: root/pjlib/src/pj/addr_resolv_sock.c
AgeCommit message (Collapse)Author
2016-05-25Fix #1925: pj_getaddrinfo() should invoke getaddrinfo() even when IP address ↵Nanang Izzuddin
is inputted, except on Windows Mobile platforms (see #458). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5319 74dad513-b988-da41-8d7b-12977e46ad98
2016-05-13Re #1917 (misc): Fixed pj_getaddrinfo()'s CFHost version (such as on iOS) ↵Liong Sauw Ming
which may return truncated IP address if (af == PJ_AF_UNSPEC) and the address is of IPv6 family. Thanks to Johan Lantz for the fix. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5295 74dad513-b988-da41-8d7b-12977e46ad98
2015-08-05Fixed #1874: Truncated IPv6 address during address lookup on iOSLiong Sauw Ming
Thanks to Brian Walker for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5146 74dad513-b988-da41-8d7b-12977e46ad98
2011-05-05Re #1250: Updated the year in all copyright texts with 2011!Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3553 74dad513-b988-da41-8d7b-12977e46ad98
2011-04-26Fixed #1246: Use CFHost for pj_getaddrinfo() on iOSLiong Sauw Ming
* Replace the fix for ticket #1104 with this fix * Modify pjturn-client/client_main's shutdown() function which conflicts with an existing function Re-run configure-iphone to use this fix automatically. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3543 74dad513-b988-da41-8d7b-12977e46ad98
2010-07-05Fixed #1101: Check and calculate IPv4/IPv6 address specified in pj_getaddrinfo()Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3234 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-04Ticket #1010:Nanang Izzuddin
- Fixed bug in some APIs of address resolver and IP helper to reset sin_len member of sockaddr. - Added purity test of sin_len member checking in pjlib test. - Fixed bug in pj_getaddrinfo() when address family param set to PJ_AF_UNSPEC (assertion raised as it called pj_sockaddr_get_addr() with PJ_AF_UNSPEC too). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3044 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-23Updated copyright notice in all files to Teluu Inc., and changed the year as ↵Benny Prijono
well git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2394 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-20Large changeset to replace all occurences of year 2007 with 2008 in the ↵Benny Prijono
copyright notice git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2039 74dad513-b988-da41-8d7b-12977e46ad98
2008-01-24Related to ticket #458: pj_getaddrinfo() should return success if IP address ↵Benny Prijono
is given git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1744 74dad513-b988-da41-8d7b-12977e46ad98
2008-01-19Fixed warning about uninitialized variable in VS6Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1714 74dad513-b988-da41-8d7b-12977e46ad98
2007-12-02More ticket #415: Added pj_sockaddr_get_len() and pj_inet_ntop2(), and fixed ↵Benny Prijono
Symbian combilation warnings with gcce git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1608 74dad513-b988-da41-8d7b-12977e46ad98
2007-12-01More ticket #415: more IPv6 and some reorganization of the source codesBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1601 74dad513-b988-da41-8d7b-12977e46ad98
2007-11-26Fixed pj_gethostip() returns 0.0.0.0. Also how it returns the first ↵Benny Prijono
interface if else fails git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1599 74dad513-b988-da41-8d7b-12977e46ad98
2007-11-22Reject 0.0.0.0 IP address returned by gethostbyname() in pj_gethostip()Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1592 74dad513-b988-da41-8d7b-12977e46ad98
2007-11-18Ticket #415: implement IPv6 support in PJLIBBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1585 74dad513-b988-da41-8d7b-12977e46ad98
2007-07-20Ticket #354: build PJLIB as dynamic libraries (.DSO) in SymbianBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1405 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-10Completed and tested (simple test) the TURN server and command line ↵Benny Prijono
STUN/TURN client git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1054 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-01Fixed ticket #151: pj_gethostip() should fallback to default interface when ↵Benny Prijono
127.x.x.x is returned, not just 127.0.0.1 (thanks Andrey Kuprianov) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1025 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-01Fixed ticket #149: Crash when resolving bad hostnames in Linux (thanks Binu KS)Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1023 74dad513-b988-da41-8d7b-12977e46ad98
2007-02-19Ticket #110: HUGE HUGE changeset to replace all occurence of year 2006 with ↵Benny Prijono
2007 in copyright notice in all sources git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@974 74dad513-b988-da41-8d7b-12977e46ad98
2007-01-26Ticket #80: pj_gethostbyname() should return the appropriate native error ↵Benny Prijono
code when it fails git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@907 74dad513-b988-da41-8d7b-12977e46ad98
2007-01-23Fixed several compilation warnings with MSVCBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@897 74dad513-b988-da41-8d7b-12977e46ad98
2007-01-20Fix ticket #71: When host doesn't have any NIC interfaces, pj_gethostip() ↵Benny Prijono
should return 127.0.0.1 instead of error git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@885 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-14Applied temporary fix to error code returned by pj_gethostbyname(). Under ↵Benny Prijono
*nix, the error code is returned in h_errno, and the error string is reported by hstrerror(). But it is a bit too complex to support this for the moment, so we just return PJ_ERESOLVE for any failure returned by gethostbyname() git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@722 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-14Fix the local IP address resolution issue in PJSIP, PJMEDIA, and PJSUA, by ↵Benny Prijono
adding a new API pj_gethostip() to resolve the default local IP address of local host. This new function will work even when local hostname resolution is not set correctly, by detecting the default IP interface in the system. Also fix compile warnings in iLBC. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@721 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-21Set svn:eol-style propertyBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@65 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-18Pretty commentsBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@51 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-13Applying license to pjprojectBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@49 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-02Final commit before 0.3-pre3Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/main@6 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-01Just changing keyword expansionBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/main@3 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-01Added suppor /and fix things for SunOS portBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/main@2 74dad513-b988-da41-8d7b-12977e46ad98
2005-10-31initial importBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/main@1 74dad513-b988-da41-8d7b-12977e46ad98