summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/clientgen.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-22 10:29:18 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-22 17:06:08 +0200
commitfa42d2e2627dc9669b6fe99eec9a4c22b6963b9a (patch)
tree82e2efc3669365e998dd889a1658218a632a250a /source3/libsmb/clientgen.c
parent13dbd5021b8f661e4fe38099e1aed03e5b0c02d6 (diff)
downloadsamba-fa42d2e2627dc9669b6fe99eec9a4c22b6963b9a.tar.gz
samba-fa42d2e2627dc9669b6fe99eec9a4c22b6963b9a.tar.xz
samba-fa42d2e2627dc9669b6fe99eec9a4c22b6963b9a.zip
s3:libsmb: add cli_state_[local|remote]_sockaddr()
metze
Diffstat (limited to 'source3/libsmb/clientgen.c')
-rw-r--r--source3/libsmb/clientgen.c10
1 files changed, 10 insertions, 0 deletions
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;