[Samba] multiple smb commands (some non AndX) in one packet
shirishpargaonkar at gmail.com
Thu Jun 5 12:29:49 GMT 2008
On Thu, Jun 5, 2008 at 1:34 AM, Volker Lendecke
<Volker.Lendecke at sernet.de> wrote:
> On Wed, Jun 04, 2008 at 03:28:31PM -0500, Shirish Pargaonkar wrote:
>> You mean 4-byte header FF 53 4D 42?
>> In another recreate, tcp frame has two smb requests,
>> close (0x4) and locking andx (0x24) each with this four byte header.
> Wait a second -- XP chokes on something that the Linux
> cifsfs sends??? How can you reproduce this?
Mounted a share and ran this command
fsstress -d /mnt -l 0 -n 1000 -p 10 -r
I also took out the code in connect.c where it sets send and receive
of a socket to 200K and 140K respectively (thus letting tcp auto-tuning take
care of socket buffer sizes).
if ((*csocket)->sk->sk_sndbuf < (200 * 1024))
(*csocket)->sk->sk_sndbuf = 200 * 1024;
if ((*csocket)->sk->sk_rcvbuf < (140 * 1024))
(*csocket)->sk->sk_rcvbuf = 140 * 1024;
You will start getting messages like server not responding and No
response to/for cmd
More information about the samba