<div dir="ltr">Just using some api to set with my interface card :P<div>You mean this?<br><div class="gmail_extra"><br><div class="gmail_quote">2015-09-04 15:22 GMT+08:00 Philip Withnall <span dir="ltr"><<a href="mailto:philip@tecnocode.co.uk" target="_blank">philip@tecnocode.co.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, 2015-09-01 at 11:04 +0800, Jack Wang wrote:<br>
> Hi Philip,<br>
><br>
> Thanks for your quick reply :)<br>
> I got the following log after applying the changes:<br>
><br>
> =======================================<br>
><br>
> libnice-socket-Message: nice_udp_bsd_socket_new: Bind error for<br>
> fc00::1: Error binding to address: Cannot assign requested address<br>
><br>
> =======================================<br>
><br>
</span>*snip*<br>
<span class="">><br>
> It declared that fc00::/8 is undefined so far and fd::00/8 are<br>
> similar to private address of IPv4,<br>
> so if I want to define a default IPv6 local address, I should set a<br>
> fd00 prefix one,  right?<br>
<br>
</span>Correct. Where are you setting this address?<br>
<span class="HOEnZb"><font color="#888888"><br>
Philip<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> Anyway, thanks for help! :)<br>
><br>
> 2015-08-31 19:41 GMT+08:00 Philip Withnall <<a href="mailto:philip@tecnocode.co.uk">philip@tecnocode.co.uk</a>>:<br>
> > Hi,<br>
> ><br>
> > On Mon, 2015-08-31 at 19:13 +0800, Jack Wang wrote:<br>
> > > I put the simple-example (by libnice 0.1.13) and required<br>
> > libraries<br>
> > > (libgio-2.0.so.0  , libglib-2.0.so.0   ,  libgmodule-2.0.so.0 ,<br>
> > > libgobject-2.0.so.0  , libgthread-2.0.so.0 and libffi.so.6) into<br>
> > the<br>
> > > same folder,<br>
> > > of course ,<br>
> > > all files be compiled in ARM architecture.<br>
> > ><br>
> > > But when I run the sample binary file,<br>
> > > I got the following error:<br>
> > ><br>
> > > =================================================<br>
> > > mv7:/tmp# ./simple-example 0 <a href="http://stun-turn.org" rel="noreferrer" target="_blank">stun-turn.org</a><br>
> > ><br>
> > > ** (process:23277): ERROR **: Failed to start candidate gathering<br>
> > > Trace/breakpoint trap<br>
> > > =================================================<br>
> > ><br>
> > > I traced the error back in codes of libnice and found the<br>
> > following<br>
> > > part in socket/udp-bsd.c<br>
> > ><br>
> > > --<br>
> > > 118   /* GSocket: All socket file descriptors are set to be close<br>
> > -on<br>
> > > -exec. */<br>
> > > 119   g_socket_set_blocking (gsock, false);<br>
> > > 120   gaddr = g_socket_address_new_from_native (&name.addr,<br>
> > sizeof<br>
> > > (name));<br>
> > > 121   if (gaddr != NULL) {<br>
> > > 122     gret = g_socket_bind (gsock, gaddr, FALSE, NULL);<br>
> > > 123     g_object_unref (gaddr);<br>
> > > 124   }<br>
> > > --<br>
> ><br>
> > Try changing the g_socket_bind() line to:<br>
> ><br>
> > GError *bind_error = NULL;<br>
> > gret = g_socket_bind (gsock, gaddr, FALSE, &bind_error);<br>
> > if (bind_error != NULL) {<br>
> >   g_message ("%s: Bind error for %s: %s", G_STRFUNC,<br>
> > nice_address_to_string (addr), bind_error->message);<br>
> >   g_error_free (bind_error);<br>
> > }<br>
> ><br>
> > and see what error message is printed.<br>
> ><br>
> > Philip<br>
> > </div></div></blockquote></div><br></div></div></div>