libexport.a: Add helpers to manage DNS lookups
authorChuck Lever <chuck.lever@oracle.com>
Tue, 22 Jun 2010 14:41:03 +0000 (10:41 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 22 Jun 2010 20:04:53 +0000 (16:04 -0400)
commit94ce1eb94babb4c587b2826452fb053cba745098
tree3fb09941085d89296ee6b6904f82b44058910f95
parent8d61f2518bebe11c5fd0624857f83de1dceca991
libexport.a: Add helpers to manage DNS lookups

Introduce DNS query helpers based on getaddrinfo(3) and
getnameinfo(3).  These will eventually replace the existing
hostent-based functions in support/export/hostname.c.

Put some of these new helpers to immediate use, where convenient.

As they are part of libexport.a, I've added the forward declarations
for these new functions in exportfs.h rather than misc.h, where the
hostent-based forward declarations are currently.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
support/export/hostname.c
support/export/nfsctl.c
support/include/exportfs.h
utils/exportfs/exportfs.c
utils/mountd/cache.c
utils/mountd/rmtab.c