#include <smb_pac.h>
Public Member Functions | |
| SMB_andx () | |
| ~SMB_andx () | |
| int | parse (const uint8 *const t_begin_of_data, const uint8 *const t_end_of_data, int t_byteorder) |
| uint8 const & | command () const |
| uint8 const & | reserved () const |
| uint16 const & | offset () const |
Protected Attributes | |
| uint8 | command_ |
| uint8 | reserved_ |
| uint16 | offset_ |
|
|
Definition at line 413 of file smb_pac.cc. References command_, offset_, and reserved_.
|
|
|
Definition at line 420 of file smb_pac.cc.
00421 {
00422 }
|
|
|
Definition at line 203 of file smb_pac.h. References command_, and BinPAC::uint8. Referenced by SMB_Session::AndxOffset().
00203 { return command_; }
|
|
|
Definition at line 205 of file smb_pac.h. References offset_, and BinPAC::uint16. Referenced by SMB_Session::AndxOffset().
00205 { return offset_; }
|
|
||||||||||||||||
|
Definition at line 424 of file smb_pac.cc. References command_, offset_, reserved_, and BinPAC::uint8. Referenced by BinPAC::SMB_write_andx_response::parse(), BinPAC::SMB_write_andx::parse(), BinPAC::SMB_read_andx_response::parse(), BinPAC::SMB_read_andx::parse(), BinPAC::SMB_nt_create_andx::parse(), and BinPAC::SMB_tree_connect_andx::parse().
00425 {
00426 // Checking out-of-bound for "SMB_andx:val"
00427 if ( t_begin_of_data + (4) > t_end_of_data )
00428 {
00429 // Handle out-of-bound condition
00430 throw ExceptionOutOfBound("SMB_andx:val",
00431 (0) + (4),
00432 (t_end_of_data) - (t_begin_of_data));
00433 }
00434 // Parse "command"
00435 command_ = *((uint8 *) (t_begin_of_data));
00436
00437 // Parse "reserved"
00438 reserved_ = *((uint8 *) ((t_begin_of_data + 1)));
00439
00440 // Parse "offset"
00441 offset_ = UnMarshall<uint16>((t_begin_of_data + 2), offset_, t_byteorder);
00442
00443 return 4;
00444 }
|
|
|
Definition at line 204 of file smb_pac.h. References reserved_, and BinPAC::uint8.
00204 { return reserved_; }
|
|
|
Definition at line 208 of file smb_pac.h. Referenced by command(), parse(), and SMB_andx(). |
|
|
Definition at line 210 of file smb_pac.h. Referenced by offset(), parse(), and SMB_andx(). |
|
|
Definition at line 209 of file smb_pac.h. Referenced by parse(), reserved(), and SMB_andx(). |
1.3.5