diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-22 16:09:54 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-22 17:06:09 +0200 |
commit | b87bd59ecb5e36db4e18c621bbb3cca9268fed0b (patch) | |
tree | 5dc174e5a16261d33c46d302b34847e49ad7585e /source3 | |
parent | b3e0b7328041093a2006de7adda2ec62ddd7deda (diff) | |
download | samba-b87bd59ecb5e36db4e18c621bbb3cca9268fed0b.tar.gz samba-b87bd59ecb5e36db4e18c621bbb3cca9268fed0b.tar.bz2 samba-b87bd59ecb5e36db4e18c621bbb3cca9268fed0b.zip |
s3:libsmb: add cli_state_remote_name()
metze
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/clientgen.c | 5 | ||||
-rw-r--r-- | source3/libsmb/proto.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index f86b2b5077..2b254294ac 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -376,6 +376,11 @@ const struct sockaddr_storage *cli_state_remote_sockaddr(struct cli_state *cli) return &cli->conn.remote_ss; } +const char *cli_state_remote_name(struct cli_state *cli) +{ + return cli->desthost; +} + uint16_t cli_state_get_vc_num(struct cli_state *cli) { return cli->smb1.vc_num; diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h index c067fe1fbf..99446dcee2 100644 --- a/source3/libsmb/proto.h +++ b/source3/libsmb/proto.h @@ -169,6 +169,7 @@ void cli_shutdown(struct cli_state *cli); void cli_sockopt(struct cli_state *cli, const char *options); const struct sockaddr_storage *cli_state_local_sockaddr(struct cli_state *cli); const struct sockaddr_storage *cli_state_remote_sockaddr(struct cli_state *cli); +const char *cli_state_remote_name(struct cli_state *cli); uint16_t cli_state_get_vc_num(struct cli_state *cli); uint16 cli_setpid(struct cli_state *cli, uint16 pid); uint16_t cli_getpid(struct cli_state *cli); |