afs: Allow IPv6 address specification of VL servers
authorDavid Howells <dhowells@redhat.com>
Thu, 2 Nov 2017 15:27:47 +0000 (15:27 +0000)
committerDavid Howells <dhowells@redhat.com>
Mon, 13 Nov 2017 15:38:17 +0000 (15:38 +0000)
commit3838d3ecdea496699a8c13c183d4df5dfe8e1a3e
tree66a9268464a94f63f65073493be06a5f4aff70a8
parent4d9df9868f31df6725481135c10ac6419ce58d44
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>
fs/afs/cell.c
fs/afs/proc.c
fs/afs/rxrpc.c
fs/afs/server.c
fs/afs/vlclient.c