diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-09-15 07:42:54 -0700 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-09-15 07:42:54 -0700 |
commit | 668470c9923364c6c43afbf94162b549c8baef9a (patch) | |
tree | 43584485ac1a94195b201bc7fd5f2da80acfacda /lib/util/util.h | |
parent | f07e77e13ff86c76644660e2d574e663c9ffdeb8 (diff) | |
download | samba-668470c9923364c6c43afbf94162b549c8baef9a.tar.gz samba-668470c9923364c6c43afbf94162b549c8baef9a.tar.xz samba-668470c9923364c6c43afbf94162b549c8baef9a.zip |
libcli:nbt make the lmhosts parsing code and dependicies common
This starts the process to have Samba4 use lmhosts.
Andrew Bartlett
Diffstat (limited to 'lib/util/util.h')
-rw-r--r-- | lib/util/util.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/lib/util/util.h b/lib/util/util.h index c0e87a27052..8438602cc6f 100644 --- a/lib/util/util.h +++ b/lib/util/util.h @@ -21,7 +21,7 @@ #ifndef _SAMBA_UTIL_H_ #define _SAMBA_UTIL_H_ -#include <netinet/in.h> +#include "system/network.h" #if _SAMBA_BUILD_ == 4 #include "../lib/util/charset/charset.h" @@ -842,4 +842,24 @@ bool add_uid_to_array_unique(TALLOC_CTX *mem_ctx, uid_t uid, bool add_gid_to_array_unique(TALLOC_CTX *mem_ctx, gid_t gid, gid_t **gids, size_t *num_gids); +/* The following definitions come from lib/util/util_net.c */ + +void zero_sockaddr(struct sockaddr_storage *pss); + +bool interpret_string_addr_internal(struct addrinfo **ppres, + const char *str, int flags); + +bool interpret_string_addr(struct sockaddr_storage *pss, + const char *str, + int flags); + +/******************************************************************* + Map a text hostname or IP address (IPv4 or IPv6) into a + struct sockaddr_storage. Version that prefers IPv4. +******************************************************************/ + +bool interpret_string_addr_prefer_ipv4(struct sockaddr_storage *pss, + const char *str, + int flags); + #endif /* _SAMBA_UTIL_H_ */ |