The following patches are related to the captive portal code originally provided by Alexandre Chataignon. The first patch is a copy of the original patch, provided again as a reference. The 3 following patches are improvements I made following a review of Alexandre's patch, to improve the following:
* Check that the query first question is for an A record, and only send an A record if so. * Handle the case of a query containing additional records (don't send a corrupt response). * For queries from a loopack IP address, don't return the captive address, but do the normal DNS handling. Alexandre Chataignon (1): dnsproxy: Added captive portal possibility Craig McQueen (3): dnsproxy: Fixes to captive portal implementation. Add functions to check if an IP address is loopback or link-local. dnsproxy: don't return captive address for queries from loopback IP src/connman.h | 6 ++- src/dnsproxy.c | 142 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/inet.c | 58 ++++++++++++++++------- src/technology.c | 7 ++- src/tethering.c | 22 ++++++++- 5 files changed, 215 insertions(+), 20 deletions(-) -- 2.1.4 _______________________________________________ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman