Skip to content

Commit

Permalink
afs: Enable IPv6 DNS lookups
Browse files Browse the repository at this point in the history
Remove the restriction on DNS lookup upcalls that prevents ipv6 addresses
from being looked up.

Signed-off-by: David Howells <dhowells@redhat.com>
  • Loading branch information
dhowells committed Jun 15, 2018
1 parent 0aac4bc commit c88d5a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fs/afs/addr_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion fs/afs/dynroot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c88d5a7

Please sign in to comment.