There are three helpers that convert sockaddr-style addresses to text
authorChuck Lever <chuck.lever@oracle.com>
Tue, 15 Jul 2008 17:33:32 +0000 (13:33 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 15 Jul 2008 17:33:32 +0000 (13:33 -0400)
commitda8a62dc65d2d105a3304dd41b6bdae5a5ddc742
treebbf8a4e10e46893a6a734bb1b0e749186814e61c
parent6ab9cdacd2ea314a837c7affb840aeeec620cb66
There are three helpers that convert sockaddr-style addresses to text
addresses, then construct mount options to pass these addresses to the
kernel.  The tail of each of these helpers does exactly the same thing,
so introduce a helper that handles the common code.

Magically, the new helper supports IPv6 as well as IPv4.

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