diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-12-19 14:36:08 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-12-19 14:36:08 +0000 |
commit | df4460acfb115812cf4bee7b1af0d8924c9dfd4c (patch) | |
tree | 792671b6e2e3d776278a07b7ba48318909b04159 /pjlib | |
parent | b0fd00197eeade206b531cee1937cdf45315db94 (diff) |
Added note about what may be causing WSAEINVAL error in pj_inet_pton() with IPv6
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2389 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib')
-rw-r--r-- | pjlib/src/pj/sock_bsd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pjlib/src/pj/sock_bsd.c b/pjlib/src/pj/sock_bsd.c index 9adacfa9..831a2579 100644 --- a/pjlib/src/pj/sock_bsd.c +++ b/pjlib/src/pj/sock_bsd.c @@ -288,6 +288,10 @@ PJ_DEF(pj_status_t) pj_inet_pton(int af, const pj_str_t *src, void *dst) PJ_STRING_TO_NATIVE(tempaddr,wtempaddr,sizeof(wtempaddr)), af, NULL, (LPSOCKADDR)&sock_addr, &addr_len); if (rc != 0) { + /* If you get rc 130022 Invalid argument (WSAEINVAL) with IPv6, + * check that you have IPv6 enabled (install it in the network + * adapter). + */ pj_status_t status = pj_get_netos_error(); if (status == PJ_SUCCESS) status = PJ_EUNKNOWN; |