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.

Tried it, and now wispr/portal works, doing the web request to the right 
interface and so on.

Please review,

Tomasz Bursztyka (4):
  gresolv: socket tries to be bound to the right interface
  gweb: socket tries to be bound to the right interface
  wispr: use the right interface index with gweb
  6to4: use the right interface index with gweb

 gweb/gresolv.c |   24 ++++++++++++++++++++++--
 gweb/gweb.c    |   17 +++++++++++++++++
 src/6to4.c     |    8 ++++++--
 src/wispr.c    |    7 ++++++-
 4 files changed, 51 insertions(+), 5 deletions(-)

-- 
1.7.8.rc3

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to