aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-x25.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-01-30 21:01:07 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-01-30 21:01:07 +0000
commit84bc28bd6abc416b3ef2762157d957ee58bb8791 (patch)
tree4527262549f59bbfdbf71a9be3674b9724ec510e /epan/dissectors/packet-x25.c
parent7a16aeaf058e50c0247570727fd498a505a3cdbe (diff)
Introduce "Fragment count" filter element for all protocols doing reassembly.
svn path=/trunk/; revision=35705
Diffstat (limited to 'epan/dissectors/packet-x25.c')
-rw-r--r--epan/dissectors/packet-x25.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/dissectors/packet-x25.c b/epan/dissectors/packet-x25.c
index 293ece4110..7d36092beb 100644
--- a/epan/dissectors/packet-x25.c
+++ b/epan/dissectors/packet-x25.c
@@ -176,6 +176,7 @@ static gint hf_x25_segment_overlap_conflict = -1;
static gint hf_x25_segment_multiple_tails = -1;
static gint hf_x25_segment_too_long_segment = -1;
static gint hf_x25_segment_error = -1;
+static gint hf_x25_segment_count = -1;
static gint hf_x25_reassembled_length = -1;
static const value_string vals_modulo[] = {
@@ -220,6 +221,7 @@ static const fragment_items x25_frag_items = {
&hf_x25_segment_multiple_tails,
&hf_x25_segment_too_long_segment,
&hf_x25_segment_error,
+ &hf_x25_segment_count,
NULL,
&hf_x25_reassembled_length,
"segments"
@@ -2637,6 +2639,10 @@ proto_register_x25(void)
{ "Defragmentation error", "x25.fragment.error", FT_FRAMENUM, BASE_NONE, NULL, 0x0,
"Defragmentation error due to illegal fragments", HFILL }},
+ { &hf_x25_segment_count,
+ { "Fragment count", "x25.fragment.count", FT_UINT32, BASE_DEC, NULL, 0x0,
+ NULL, HFILL }},
+
{ &hf_x25_reassembled_length,
{ "Reassembled X.25 length", "x25.reassembled.length", FT_UINT32, BASE_DEC, NULL, 0x0,
"The total length of the reassembled payload", HFILL }},