nwrap: Add a hash table to the nwrap structure
authorRobin Hack <hack.robin@gmail.com>
Wed, 15 Jul 2015 13:01:48 +0000 (15:01 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 7 Oct 2015 13:58:31 +0000 (15:58 +0200)
commit0ff0c85cd5d4e30fd132d507213ad97c37713b38
tree5279d22d2d2574478a40a55f4c47d65134b3c177
parent6215857195ab9cf4a2b321d984380f9530c0569e
nwrap: Add a hash table to the nwrap structure

The hash table will hold hostnames and ips internally. The new
environment variable which is introduced is NSS_WRAPPER_MAX_HOSTENTS. It
sets the maximum count of hostent (hostnames and ips) structs which the
hash table can hold.

Signed-off-by: Robin Hack <hack.robin@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
src/nss_wrapper.c