SVN latest bind fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I should mention it's in sock_bsd.c, and the 1600 rev is OK.

-Norman

On Dec 3, 2007, at 12:56 PM, Norman Franke wrote:

> This code:
>
> /*
>  * Bind socket.
>  */
> PJ_DEF(pj_status_t) pj_sock_bind( pj_sock_t sock,
> 				  const pj_sockaddr_t *addr,
> 				  int len)
> {
>     PJ_CHECK_STACK();
>
>     PJ_ASSERT_RETURN(addr && len >= (int)sizeof(struct  
> sockaddr_in), PJ_EINVAL);
>
>     if (bind(sock, (struct sockaddr*)addr, len) != 0)
> 	return PJ_RETURN_OS_ERROR(pj_get_native_netos_error());
>     else
> 	return PJ_SUCCESS;
> }
>
> Seems to now fail under OS X with:
>
> #define ERANGE      34      /* Result too large */
>
> -Norman
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20071203/376267ed/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux