Hi Tomasz, On Fri, Nov 25, 2011 at 01:03:01PM +0200, Tomasz Bursztyka wrote: > Ok, here is a second version of my previous patchset. > gresolv should not try to bind the socket on a specific interface when the > nameserver ip is the localhost one. > That's why previous patchset did not worked (sending packet for lo through > eth0... not likely meant to work) > > Besides, if index == 0, we don't perform the interface bind since, afaik, 0 > means any interface. > Or am I wrong here? Please correct me if so. index 0 is not assigned, so if_indextoname() would return NULL and thus SO_BINDTODEVICE would basically do nothing.
> Tried it, and now wispr/portal works, doing the web request to the right > interface and so on. > Nice catch, I applied the patchset. Cheers, Samuel. -- Intel Open Source Technology Centre http://oss.intel.com/ _______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
