]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit57ee5ab91cb20e9d6466aa66789e282c4c8cbe9b
tree66a9268464a94f63f65073493be06a5f4aff70a8
parentc86f115a31add3d37b6e4132f3a28ee8e4db7de3
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