Skip to contentSkip to conversation

mount.nfs: don't use IPv6 unless IPV6_SUPPORTED is set

PATCH In review Jeff Layton 2 participants 2 messages Jan 4, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mount.nfs: don't use IPv6 unless IPV6_SUPPORTED is set

Commit 1f3fae1fb25168aac187ff1881738c8ad53a8763 made mount.nfs start looking up and trying to use IPv6 addresses when mount.nfs was built against libtirpc (even when --enable-ipv6 wasn't specified).

The problem seems to be that nfs_nfs_proto_family() is basing the family on HAVE_LIBTIRPC. I think it should be basing it on IPV6_SUPPORTED instead.

---
 utils/mount/network.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
utils/mount/network.c +1 -1
index e3ad5c2..906e20c 100644
@@ -1344,7 +1344,7 @@ int nfs_nfs_proto_family(struct mount_options *options,
 	unsigned long protocol;
 	char *option;
 
-#ifdef HAVE_LIBTIRPC
+#ifdef IPV6_SUPPORTED
 	*family = AF_UNSPEC;
 #else
 	*family = AF_INET;
Signature · 1 line
1.6.5.2
#1 lore raw
Quoted 10 lines · Jeff Layton

Commit 1f3fae1fb25168aac187ff1881738c8ad53a8763 made mount.nfs start looking up and trying to use IPv6 addresses when mount.nfs was built against libtirpc (even when --enable-ipv6 wasn't specified).

The problem seems to be that nfs_nfs_proto_family() is basing the family on HAVE_LIBTIRPC. I think it should be basing it on IPV6_SUPPORTED instead.

Committed...

steved.