summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-06-08 14:50:20 +0200
committerAndrew Bartlett <abartlet@samba.org>2011-07-04 18:27:55 +1000
commitc663dfff880634865c4b9f8bad0fa8599899e66a (patch)
treeb00703f55c9e391a295723d7bf625ebce50b6a22 /source3/include
parent6b86590342799f3fd35700a1cd1f5fd2aba3547c (diff)
downloadsamba-c663dfff880634865c4b9f8bad0fa8599899e66a.tar.gz
samba-c663dfff880634865c4b9f8bad0fa8599899e66a.tar.bz2
samba-c663dfff880634865c4b9f8bad0fa8599899e66a.zip
s3-util: Add a get_remote_hostname() function.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 36ba416e78..9e6cfc1c08 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -788,6 +788,13 @@ NTSTATUS open_socket_out_defer_recv(struct tevent_req *req, int *pfd);
int open_udp_socket(const char *host, int port);
const char *get_peer_name(int fd, bool force_lookup);
const char *get_peer_addr(int fd, char *addr, size_t addr_len);
+
+struct tsocket_address;
+
+int get_remote_hostname(const struct tsocket_address *remote_address,
+ char **name,
+ TALLOC_CTX *mem_ctx);
+
int create_pipe_sock(const char *socket_dir,
const char *socket_name,
mode_t dir_perms);