aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-smb.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2010-02-02 16:01:52 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2010-02-02 16:01:52 +0000
commit88b72356adcf886a2381572c758d4d4f881ba559 (patch)
treee7f51edf88c97e06325053a1bb28b7768e940a44 /epan/dissectors/packet-smb.c
parent6dfde6891119b45e7ae543c4601ba69d5b833127 (diff)
Introduce "Reassembled length" filter element for all protocols doing
reassembly. svn path=/trunk/; revision=31767
Diffstat (limited to 'epan/dissectors/packet-smb.c')
-rw-r--r--epan/dissectors/packet-smb.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/dissectors/packet-smb.c b/epan/dissectors/packet-smb.c
index e1a78aa55f..f672c02c79 100644
--- a/epan/dissectors/packet-smb.c
+++ b/epan/dissectors/packet-smb.c
@@ -642,6 +642,7 @@ static int hf_smb_segment_overlap_conflict = -1;
static int hf_smb_segment_multiple_tails = -1;
static int hf_smb_segment_too_long_fragment = -1;
static int hf_smb_segment_error = -1;
+static int hf_smb_reassembled_length = -1;
static int hf_smb_pipe_write_len = -1;
static int hf_smb_unix_major_version = -1;
static int hf_smb_unix_minor_version = -1;
@@ -782,7 +783,7 @@ static const fragment_items smb_frag_items = {
&hf_smb_segment_too_long_fragment,
&hf_smb_segment_error,
NULL,
-
+ &hf_smb_reassembled_length,
"segments"
};
@@ -19267,6 +19268,10 @@ proto_register_smb(void)
{ "Defragmentation error", "smb.segment.error", FT_FRAMENUM, BASE_NONE, NULL, 0x0,
"Defragmentation error due to illegal fragments", HFILL }},
+ { &hf_smb_reassembled_length,
+ { "Reassembled length", "smb.reassembled.length", FT_UINT32, BASE_DEC, NULL, 0x0,
+ "The total length of the reassembled payload", HFILL }},
+
{ &hf_smb_opened_in,
{ "Opened in", "smb.fid.opened_in", FT_FRAMENUM, BASE_NONE, NULL, 0x0,
"The frame this fid was opened", HFILL }},