|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2009 Open Information Security Foundation
|
|
|
|
|
* Copyright (c) 2009,2010 Open Information Security Foundation
|
|
|
|
|
* app-layer-smb.h
|
|
|
|
|
*
|
|
|
|
|
* \author Kirby Kuehl <kkuehl@gmail.com>
|
|
|
|
@ -13,21 +13,21 @@
|
|
|
|
|
#include "stream.h"
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
/*
|
|
|
|
|
http://ubiqx.org/cifs/rfc-draft/rfc1002.html#s4.3
|
|
|
|
|
All session packets are of the following general structure:
|
|
|
|
|
http://ubiqx.org/cifs/rfc-draft/rfc1002.html#s4.3
|
|
|
|
|
All session packets are of the following general structure:
|
|
|
|
|
|
|
|
|
|
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) /
|
|
|
|
|
| |
|
|
|
|
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
|
|
|
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) /
|
|
|
|
|
| |
|
|
|
|
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
|
|
|
|
|
|
|
|
The TYPE, FLAGS, and LENGTH fields are present in every session
|
|
|
|
|
packet.
|
|
|
|
|
The TYPE, FLAGS, and LENGTH fields are present in every session
|
|
|
|
|
packet.
|
|
|
|
|
*/
|
|
|
|
|
#define NBSS_SESSION_MESSAGE 0x00
|
|
|
|
|
#define NBSS_SESSION_REQUEST 0x81
|
|
|
|
|