#include <DCE_RPC.h>
Collaboration diagram for DCE_RPC_Header:
Public Member Functions | |
DCE_RPC_Header (Connection *conn, const u_char *bytes) | |
enum DCE_RPC_PTYPE | PTYPE () const |
int | FragLen () const |
int | LittleEndian () const |
bool | Fragmented () const |
void | Weird (const char *msg) |
void | SetBytes (const u_char *b) |
Protected Attributes | |
Connection * | conn |
const u_char * | bytes |
enum DCE_RPC_PTYPE | ptype |
int | frag_len |
bool | fragmented |
|
Definition at line 35 of file DCE_RPC.cc. References bytes, DCE_RPC_PTYPE, extract_uint16, frag_len, fragmented, LittleEndian(), ptype, and Weird().
00036 { 00037 conn = c; 00038 bytes = b; 00039 00040 // This checks whether it's both the first fragment *and* 00041 // the last fragment. 00042 if ( bytes[3] & 0x3 != 0x3 ) 00043 { 00044 fragmented = 1; 00045 Weird("Fragmented DCE/RPC message"); 00046 } 00047 else 00048 fragmented = 0; 00049 00050 ptype = (enum DCE_RPC_PTYPE) bytes[2]; 00051 frag_len = extract_uint16(LittleEndian(), bytes + 8); 00052 } |
|
Definition at line 46 of file DCE_RPC.h. References frag_len. Referenced by TCP_Contents_DCE_RPC::ParseHeader().
00046 { return frag_len; } |
|
Definition at line 48 of file DCE_RPC.h. References fragmented.
00048 { return fragmented; } |
|
Definition at line 47 of file DCE_RPC.h. Referenced by DCE_RPC_Header().
00047 { return bytes[4] >> 4; } |
|
Definition at line 45 of file DCE_RPC.h. References DCE_RPC_PTYPE, and ptype. Referenced by TCP_Contents_DCE_RPC::DeliverPDU().
00045 { return ptype; } |
|
Definition at line 51 of file DCE_RPC.h. Referenced by TCP_Contents_DCE_RPC::ParseHeader().
00051 { bytes = b; } |
|
Definition at line 50 of file DCE_RPC.h. References Connection::Weird(). Referenced by DCE_RPC_Header().
|
|
Definition at line 55 of file DCE_RPC.h. Referenced by DCE_RPC_Header(). |
|
|
|
Definition at line 57 of file DCE_RPC.h. Referenced by DCE_RPC_Header(), and FragLen(). |
|
Definition at line 58 of file DCE_RPC.h. Referenced by DCE_RPC_Header(), and Fragmented(). |
|
Definition at line 56 of file DCE_RPC.h. Referenced by DCE_RPC_Header(), and PTYPE(). |