]> git.decadent.org.uk Git - nfs-utils.git/commit
mountd: support IPv6 [] escaping with fsloc hosts
authorWeston Andros Adamson <dros@netapp.com>
Tue, 1 May 2012 18:54:39 +0000 (14:54 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 1 May 2012 18:55:50 +0000 (14:55 -0400)
commit946c1c81c2f38b65acff632be4d4604e3959a323
tree8a9403eacde97c3351406851d922083c8ff5b0ca
parenta38b3e395f1c76ceb316b394a813abd4e885cc67
mountd: support IPv6 [] escaping with fsloc hosts

mountd uses colons to split fsloc hosts, but this doesn't work with IPv6
addresses (they contain ':').

To fix this, mountd is changed to expect all IPv6 addresses to be escaped
by '[' and ']' so colons that are part of the address may be skipped.
To fix IPv6 referrals, this patch must be used with the nfsd patch that
properly parses escaped IPv6 addresses in fs_location->hosts.

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mountd/fsloc.c