diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-07-13 12:25:40 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-07-15 10:57:32 +0200 |
commit | da737f2447c925726fb944fc08683ffaf6cf8a63 (patch) | |
tree | 3cc15d001dcc974635fba1abd2cf43c6526fe9eb /source4/libcli/smb2/transport.c | |
parent | af3444e6117de7d24bc2e3b61436f2804bfa1e4e (diff) | |
download | samba-da737f2447c925726fb944fc08683ffaf6cf8a63.tar.gz samba-da737f2447c925726fb944fc08683ffaf6cf8a63.tar.xz samba-da737f2447c925726fb944fc08683ffaf6cf8a63.zip |
s4:libcli/smb2: add smb2_transport_credits_set_charge() to change the CreditsCharge value for the next request
metze
Diffstat (limited to 'source4/libcli/smb2/transport.c')
-rw-r--r-- | source4/libcli/smb2/transport.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/libcli/smb2/transport.c b/source4/libcli/smb2/transport.c index 60522370b7a..dffd1acd2b5 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.charge = 0; transport->credits.ask_num = 1; /* setup the stream -> packet parser */ @@ -552,6 +553,12 @@ void smb2_transport_credits_ask_num(struct smb2_transport *transport, transport->credits.ask_num = ask_num; } +void smb2_transport_credits_set_charge(struct smb2_transport *transport, + uint16_t charge) +{ + transport->credits.charge = charge; +} + static void idle_handler(struct tevent_context *ev, struct tevent_timer *te, struct timeval t, void *private_data) { |