]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
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)
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>

No differences found