aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/afs/server.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2017-11-02 15:27:47 +0000
committerDavid Howells <dhowells@redhat.com>2017-11-13 15:38:17 +0000
commit3838d3ecdea496699a8c13c183d4df5dfe8e1a3e (patch)
tree66a9268464a94f63f65073493be06a5f4aff70a8 /fs/afs/server.c
parentafs: Keep and pass sockaddr_rxrpc addresses rather than in_addr (diff)
downloadwireguard-linux-3838d3ecdea496699a8c13c183d4df5dfe8e1a3e.tar.xz
wireguard-linux-3838d3ecdea496699a8c13c183d4df5dfe8e1a3e.zip
afs: Allow IPv6 address specification of VL servers
Allow VL server specifications to be given IPv6 addresses as well as IPv4 addresses, for example as: echo add foo.org 1111:2222:3333:0:4444:5555:6666:7777 >/proc/fs/afs/cells Note that ':' is the expected separator for separating IPv4 addresses, but if a ',' is detected or no '.' is detected in the string, the delimiter is switched to ','. This also works with DNS AFSDB or SRV record strings fetched by upcall from userspace. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/server.c')
-rw-r--r--fs/afs/server.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/afs/server.c b/fs/afs/server.c
index 662f7fbf5d05..c63974f06385 100644
--- a/fs/afs/server.c
+++ b/fs/afs/server.c
@@ -200,11 +200,6 @@ struct afs_server *afs_find_server(struct afs_net *net,
_enter("{%d,%pIS}", srx->transport.family, &srx->transport);
- if (srx->transport.family != AF_INET) {
- WARN(true, "AFS does not yes support non-IPv4 addresses\n");
- return NULL;
- }
-
read_lock(&net->servers_lock);
p = net->servers.rb_node;