Thank You.  Adding the following line just prior to the bind() call in
tport_bind_socket() did the trick.  The bind succeeds when passing it the
IPv6 Link Address or the IPv6 Global Address.

su->su_sin6.sin6_scope_id = (unsigned long)if_nametoindex("esw0");

Perhaps a TPTAG tag should be added to pass in the name of the interface or
index of the interface (unless there already is one)?

Best Regards,
Jerry


-----Original Message-----
From: Pekka Pessi [mailto:ppe...@gmail.com] 
Sent: Wednesday, February 11, 2009 12:42 PM
To: Jerry Richards
Cc: sofia-sip-devel@lists.sourceforge.net
Subject: Re: [Sofia-sip-devel] IPv6 Link Address Bind Fail

2009/2/11 Jerry Richards <jer...@tonecommander.com>:
> Anyone know why sofia-sip's tport UDP bind() invocation is happy if I 
> use the phone's IPv6 Global address, but gets an error (Invalid 
> Argument) when I use the phone's IPv6 Link address?

You should somehow tell bind(2) which interface to use (don't ask me why;
there is probably a good reason for that).

--
Pekka.Pessi mail at nokia.com


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to