This patch implements support for the search domains list provided by Service
API.

I prevented changes to resolver driver API by using the (previously unused)
domain value in append/remove functions. Only one domain can be passed per
function call, so multiple search domains must be appended with separate calls.
Search domains are stored in nameserver entry list inside resolver module, one
domain per entry (with nameserver value NULL). Stored domains are exported into
resolv.conf behind "search" keyword, maximum amount of them defined by
MAXDNSRCH.

Because the domains list in service struct is now used and supported, I also
removed domainname variable from the struct. The domainname in effect
interferes with domains list, so it should either be exposed in dbus or be
removed, I think? Consequently, the __connman_service_set_domainname() function
now clears the existing domains and inserts the given one.

Henri Bragge (1):
  Add support for multiple search domains

 src/resolver.c |   33 +++++++++++++++++++++++++++------
 src/service.c  |   42 ++++++++++++++++++++++++++++++++----------
 2 files changed, 59 insertions(+), 16 deletions(-)


_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to