]> git.decadent.org.uk Git - nfs-utils.git/commit
exportfs: Enable IPv6 support in matchhostname()
authorChuck Lever <chuck.lever@oracle.com>
Thu, 16 Sep 2010 18:17:08 +0000 (14:17 -0400)
committerSteve Dickson <steved@redhat.com>
Thu, 16 Sep 2010 18:33:51 +0000 (14:33 -0400)
commit6f189dae5eb38800c8ae3e2d5c098d11fb44d7d5
tree32c8a5afb6bbd635f0d065cc64ca819aa7a90dd8
parent10a6b17d3588647ab5e1ee81ba40f1ce12a5184d
exportfs: Enable IPv6 support in matchhostname()

To gain IPv6 support in matchhostname(), simply replace the socket
address comparison helpers with the generic versions that can handle
IPv4 and IPv6.

host_addrinfo() (called by matchhostname()) returns IPv6 addresses
only if IPv6 support is enabled.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/exportfs/exportfs.c