smb_len
hi, after the message_type(byte 0)and message flag (byte 1)fields in the smb header what is placed in bytes2 and3 of the header.as this is made use of incomputing the length of the header. in detail,in the smb.h(ver--2.0.7) header there is a hash define for smb_len,which uses the 3,2and 1st byte to compute length.please can anyone tell me what computation is being carried out there. i am writing a client code and i am not able to proceed because the computation of smb_len returns 0 and no other functions are executed. please do help me out. regards ranjaniDo You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more
Re: smb_len
RANJANI NAGARAJAN wrote: hi, after the message_type(byte 0) and message flag (byte 1) fields in the smb header what is placed in bytes 2 and 3 of the header. You are looking at the wrong header. The structure you are looking at is: 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | FLAGS |LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | / TRAILER (Packet Type Dependent) / | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ which is the NBT Session Service header. If you are going to implement a CIFS client, you will *need* to look at: http://us6.samba.org/samba/docs/ http://ubiqx.org/cifs/rfc-draft/rfc1001.html http://ubiqx.org/cifs/rfc-draft/rfc1002.html http://ubiqx.org/cifs/index.html http://ubiqx.org/cifs/References.html http://www.snia.org/English/Work_Groups/NAS/CIFS/WG_CIFS_Docs.html ...and that's just for starters. Chris -)- -- Christopher R. Hertel -)- University of Minnesota [EMAIL PROTECTED] Networking and Telecommunications Services