Chapter 12. The SMB Header in Detail

1st rule of Oriental Cuisine: Never look inside the eggroll.

During that first expedition into SMB territory we continually deferred, among other things, studying the finer details of the SMB header. We were trying to cover the general concepts, but now we need to dig into the guts of SMB to see how things really work. Latex gloves and lab coats required.

Let's start by revisiting the header layout. Just for review, here's what it looks like:

graphics/197fig01.gif

The first four bytes are constant, so we won't worry about those. The COMMAND field is fairly straightforward too; it's just a one byte field containing an SMB command code. The list of available codes is given in Section 5.1 of the SNIA doc. The rest of the header is where the fun lies...



Implementing CIFS. The Common Internet File System
Implementing CIFS: The Common Internet File System
ISBN: 013047116X
EAN: 2147483647
Year: 2002
Pages: 210

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net