diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2009-12-11 10:44:34 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-12-11 16:13:16 -0500 |
commit | 1f3fae1fb25168aac187ff1881738c8ad53a8763 (patch) | |
tree | 871d3e24f34dc78ddf8da395ca7a246c11f10b45 /utils/mount/network.h | |
parent | 9889b48572e672f4535ca9dafd98d81146b7b834 (diff) | |
download | nfs-utils-1f3fae1fb25168aac187ff1881738c8ad53a8763.tar.gz nfs-utils-1f3fae1fb25168aac187ff1881738c8ad53a8763.tar.xz nfs-utils-1f3fae1fb25168aac187ff1881738c8ad53a8763.zip |
mount.nfs: Add new API for getting protocol family from netids
Introduce a couple of new functions that extract the protocol family
from the value of the proto= and mountproto= mount options.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/mount/network.h')
-rw-r--r-- | utils/mount/network.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/mount/network.h b/utils/mount/network.h index 2cdf02e..da095e3 100644 --- a/utils/mount/network.h +++ b/utils/mount/network.h @@ -58,6 +58,8 @@ int clnt_ping(struct sockaddr_in *, const unsigned long, struct mount_options; +int nfs_nfs_proto_family(struct mount_options *options, sa_family_t *family); +int nfs_mount_proto_family(struct mount_options *options, sa_family_t *family); int nfs_nfs_version(struct mount_options *options, unsigned long *version); int nfs_nfs_protocol(struct mount_options *options, unsigned long *protocol); |