summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2/transport.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-06-08 17:59:26 +0200
committerStefan Metzmacher <metze@samba.org>2009-06-09 16:49:30 +0200
commitd153430e32ba8651feb9a626613c46a4a60c7bbf (patch)
tree75bcebef784a9c2049dee2b3cfcfad646b854c0d /source4/libcli/smb2/transport.c
parent5b99fa5c4fb1a21caa6da747f8ee9db737990432 (diff)
downloadsamba-d153430e32ba8651feb9a626613c46a4a60c7bbf.tar.gz
samba-d153430e32ba8651feb9a626613c46a4a60c7bbf.tar.bz2
samba-d153430e32ba8651feb9a626613c46a4a60c7bbf.zip
s4:libcli/smb2: add smb2_transport_credits_ask_num()
metze
Diffstat (limited to 'source4/libcli/smb2/transport.c')
-rw-r--r--source4/libcli/smb2/transport.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/libcli/smb2/transport.c b/source4/libcli/smb2/transport.c
index 49b72a4545..60522370b7 100644
--- a/source4/libcli/smb2/transport.c
+++ b/source4/libcli/smb2/transport.c
@@ -84,6 +84,7 @@ struct smb2_transport *smb2_transport_init(struct smbcli_socket *sock,
transport->socket = talloc_steal(transport, sock);
transport->options = *options;
+ transport->credits.ask_num = 1;
/* setup the stream -> packet parser */
transport->packet = packet_init(transport);
@@ -545,6 +546,12 @@ void smb2_transport_compound_set_related(struct smb2_transport *transport,
transport->compound.related = related;
}
+void smb2_transport_credits_ask_num(struct smb2_transport *transport,
+ uint16_t ask_num)
+{
+ transport->credits.ask_num = ask_num;
+}
+
static void idle_handler(struct tevent_context *ev,
struct tevent_timer *te, struct timeval t, void *private_data)
{