From fa42d2e2627dc9669b6fe99eec9a4c22b6963b9a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 22 Jul 2011 10:29:18 +0200 Subject: s3:libsmb: add cli_state_[local|remote]_sockaddr() metze --- source3/libsmb/clientgen.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source3/libsmb/clientgen.c') diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index ca6201e6bb..cc5ff49254 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -366,6 +366,16 @@ void cli_sockopt(struct cli_state *cli, const char *options) set_socket_options(cli->conn.fd, options); } +const struct sockaddr_storage *cli_state_local_sockaddr(struct cli_state *cli) +{ + return &cli->src_ss; +} + +const struct sockaddr_storage *cli_state_remote_sockaddr(struct cli_state *cli) +{ + return &cli->dest_ss; +} + uint16_t cli_state_get_vc_num(struct cli_state *cli) { return cli->smb1.vc_num; -- cgit