From 84bc28bd6abc416b3ef2762157d957ee58bb8791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Sun, 30 Jan 2011 21:01:07 +0000 Subject: Introduce "Fragment count" filter element for all protocols doing reassembly. svn path=/trunk/; revision=35705 --- epan/dissectors/packet-dnp.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'epan/dissectors/packet-dnp.c') diff --git a/epan/dissectors/packet-dnp.c b/epan/dissectors/packet-dnp.c index 56cd097f2d..b40b92baea 100644 --- a/epan/dissectors/packet-dnp.c +++ b/epan/dissectors/packet-dnp.c @@ -1037,6 +1037,7 @@ static int hf_dnp3_fragment_overlap_conflict = -1; static int hf_dnp3_fragment_multiple_tails = -1; static int hf_dnp3_fragment_too_long_fragment = -1; static int hf_dnp3_fragment_error = -1; +static int hf_dnp3_fragment_count = -1; static int hf_dnp3_fragment_reassembled_in = -1; static int hf_dnp3_fragment_reassembled_length = -1; static gint ett_dnp3_fragment = -1; @@ -1052,6 +1053,7 @@ static const fragment_items dnp3_frag_items = { &hf_dnp3_fragment_multiple_tails, &hf_dnp3_fragment_too_long_fragment, &hf_dnp3_fragment_error, + &hf_dnp3_fragment_count, &hf_dnp3_fragment_reassembled_in, &hf_dnp3_fragment_reassembled_length, "DNP 3.0 fragments" @@ -3438,6 +3440,10 @@ proto_register_dnp3(void) { "Defragmentation error", "dnp3.al.fragment.error", FT_FRAMENUM, BASE_NONE, NULL, 0x0, "Defragmentation error due to illegal fragments", HFILL }}, + { &hf_dnp3_fragment_count, + { "Fragment count", "dnp3.al.fragment.count", FT_UINT32, BASE_DEC, NULL, 0x0, + NULL, HFILL }}, + { &hf_dnp3_fragment_reassembled_in, { "Reassembled PDU In Frame", "dnp3.al.fragment.reassembled_in", FT_FRAMENUM, BASE_NONE, NULL, 0x0, "This PDU is reassembled in this frame", HFILL }}, -- cgit v1.2.3