afs: Enable IPv6 DNS lookups
authorDavid Howells <dhowells@redhat.com>
Fri, 15 Jun 2018 14:19:10 +0000 (15:19 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 15 Jun 2018 14:27:09 +0000 (15:27 +0100)
Remove the restriction on DNS lookup upcalls that prevents ipv6 addresses
from being looked up.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/addr_list.c
fs/afs/dynroot.c

index 7587fb665ff189b088b1a9bb9e8c1b7c7005c083..b49ccae07875bc521e4d4dcfab6f9eae4972bba6 100644 (file)
@@ -216,7 +216,7 @@ struct afs_addr_list *afs_dns_query(struct afs_cell *cell, time64_t *_expiry)
        _enter("%s", cell->name);
 
        ret = dns_query("afsdb", cell->name, cell->name_len,
-                       "ipv4", &vllist, _expiry);
+                       "", &vllist, _expiry);
        if (ret < 0)
                return ERR_PTR(ret);
 
index 983f3946ab576927850bd62e84308cf565de456f..7425f416ed734a77ddeae53a8b0c0bc36030b614 100644 (file)
@@ -46,7 +46,7 @@ static int afs_probe_cell_name(struct dentry *dentry)
                return 0;
        }
 
-       ret = dns_query("afsdb", name, len, "ipv4", NULL, NULL);
+       ret = dns_query("afsdb", name, len, "", NULL, NULL);
        if (ret == -ENODATA)
                ret = -EDESTADDRREQ;
        return ret;