diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-11-18 02:51:20 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-11-18 02:51:20 +0000 |
commit | bdd9eb3cf47561aca18659ad746a3587f2ca55d5 (patch) | |
tree | 3a5e9eb2ad0ce745c0fab538f7cbb08c2fffb106 /smb.h | |
parent | e361502b7095dfc89ae14cd16d9bc700aea33f5a (diff) |
Pass in the "smb_info" structure a pointer to the "smb_saved_info_t"
structure, so that it can be updated by subdissectors; this way the
updates affect the structure immediately, and don't get lost if the
subdissector later throws an exception.
Use "tvb_reported_length()" to check for an interim mailslot reply;
"tvb_length()" could give the wrong answer if a short snapshot length
was given in the capture.
svn path=/trunk/; revision=4218
Diffstat (limited to 'smb.h')
-rw-r--r-- | smb.h | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -2,7 +2,7 @@ * Defines for smb packet dissection * Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com> * - * $Id: smb.h,v 1.20 2001/11/18 01:46:51 guy Exp $ + * $Id: smb.h,v 1.21 2001/11/18 02:51:20 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -628,6 +628,15 @@ #define SMB_LMapi_UserPasswordSet 0x0073 /* + * The information we need to save about a request in order to show the + * frame number of the request in the dissection of the reply. + */ +typedef struct { + guint32 frame_req, frame_res; + void *extra_info; +} smb_saved_info_t; + +/* * The information we need to save about a Transaction request in order * to dissect the reply; this includes information for use by the * Remote API and Mailslot dissectors. @@ -654,10 +663,9 @@ typedef struct smb_info { int cmd, mid; gboolean unicode; /* Are strings in this SMB Unicode? */ gboolean request; /* Is this a request? */ - guint32 frame_req, frame_res; gboolean unidir; int info_count; - void *extra_info; /* extra info for transactions */ + smb_saved_info_t *sip; /* smb_saved_info_t, if any, for this */ } smb_info_t; #endif |