"Trans2 request" after an "andx create request" problem (bug?)
xyster_ at hotmail.com
Wed Sep 29 03:03:18 GMT 2004
When in doubt try the least plausible. The only difference between the two
requests is in byte 0x76 (of the frame), the first, successfull one, has it
properly set to 0x00 while the seond, failed one, has it set to 0x80. My old
version of Ethereal claims that byte is reserved (after setup count), it is
possible Samba depends on that byte being zero when it should not be looking
Either way, your client would be at fault.
>From: "Maarten van der Heijden" <Maarten at vdg-nederland.com>
>To: "Michael B Allen" <mba2000 at ioplex.com>
>CC: samba-technical at lists.samba.org
>Subject: RE: "Trans2 request" after an "andx create request" problem (bug?)
>Date: Tue, 28 Sep 2004 12:26:30 +0200
>I checked and double checked the NT_CREATE_ANDX packets and they are
>exactly how they are supposed to be. The samba server also doesn't
>return an error when I do a create andx, so that seems ok to me.
>I attached a ethereal capture for your information; notice the
>difference in the 2 transaction call responses.
>Van: Michael B Allen [mailto:mba2000 at ioplex.com]
>Verzonden: dinsdag 28 september 2004 10:36
>Aan: Maarten van der Heijden
>Onderwerp: Re: "Trans2 request" after an "andx create request" problem
>On Tue, 28 Sep 2004 09:33:20 +0200
>"Maarten van der Heijden" <Maarten at vdg-nederland.com> wrote:
> > I don't batch the transaction message with the NT_CREATE_ANDX request.
> > The requests are two separate messages; both with headers so to say.
> > problem also doesn't not occur after a WRITE_ANDX request.
> > I'm still at a loss, why a transaction based request fails following a
> > NT_CREATE_ANDX. Does it have something to do with the ID fields in the
> > header?
>Does it work against a server other than Samba (e.g. a Windows
>server)? What does the Ethereal capture  look like? It is very likely
>that the bug is in your code. Your offsets are wrong, some alignment
>is messed up, there's some trailing garbage in the packet, you're not
>writing each packet with one write, etc...
>Greedo shoots first? Not in my Star Wars.
><< Invalid_info_class >>
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
More information about the samba-technical