Hi,
Here is two small patches to make wpad aware and taking care of current
ipconfig type. So it can then run wispr (when relevant) with the right
ipconfig type too. These are proposal only, at least the first one since I am
not totally sure with the solution.
So first patch restricts the result from gresolv to a certain address family.
It's not probably the best solution, I am not fully sure about the
meaning of ns_t_a and ns_t_aaaa in g_resolv_lookup_hostname() since afaik you
can make ipv4 request to a nameserver to get both results A and AAAA.
Currently I am only filtering the results in sort_and_return_results(), was a
trivial change and not too instrusive in the logic.
Second patch does like I did on wispr: it handles different context according
to the ipconfig type, and uses first patch additional function to
restrict name resolution results to the right address family. Question is: will
we in the future handle different proxy configuration, one for ipv4
and one for ipv6?
Please review,
Tomasz Bursztyka (2):
gresolv: added the capability to restrict the results to a specific
address family.
wpad: switching to separated ip family context based logic.
gweb/gresolv.c | 26 ++++++++++
gweb/gresolv.h | 2 +
src/connman.h | 3 +-
src/service.c | 2 +-
src/wpad.c | 151 ++++++++++++++++++++++++++++++++++++++-----------------
5 files changed, 135 insertions(+), 49 deletions(-)
--
1.7.3.4
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman