aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-pgm.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-12-26 00:22:16 +0000
committerGuy Harris <guy@alum.mit.edu>2004-12-26 00:22:16 +0000
commitce604cf8f0d62fd231e06bb4c3ca2b9affee18be (patch)
tree4ceaf8c1480728d2e87320cadd9a29603bc4ddfc /epan/dissectors/packet-pgm.c
parent5a89cfc00b280c986ac253f9c1886fc268c4f904 (diff)
From Luis Ontanon: add more filterable fields to DNS, PGM, GTP, and RADIUS.
svn path=/trunk/; revision=12835
Diffstat (limited to 'epan/dissectors/packet-pgm.c')
-rw-r--r--epan/dissectors/packet-pgm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/epan/dissectors/packet-pgm.c b/epan/dissectors/packet-pgm.c
index 6b90fbdb06..1a100a1408 100644
--- a/epan/dissectors/packet-pgm.c
+++ b/epan/dissectors/packet-pgm.c
@@ -373,6 +373,7 @@ static int ett_pgm_opts_fragment = -1;
static int hf_pgm_main_sport = -1;
static int hf_pgm_main_dport = -1;
+static int hf_pgm_port = -1;
static int hf_pgm_main_type = -1;
static int hf_pgm_main_opts = -1;
static int hf_pgm_main_opts_opt = -1;
@@ -1316,8 +1317,13 @@ dissect_pgm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
pgm_tree = proto_item_add_subtree(ti, ett_pgm);
proto_tree_add_uint(pgm_tree, hf_pgm_main_sport, tvb, offset, 2,
pgmhdr.sport);
+ proto_tree_add_uint_hidden(pgm_tree, hf_pgm_port, tvb, offset, 2,
+ pgmhdr.sport);
proto_tree_add_uint(pgm_tree, hf_pgm_main_dport, tvb, offset+2,
2, pgmhdr.dport);
+ proto_tree_add_uint_hidden(pgm_tree, hf_pgm_port, tvb, offset+2,
+ 2, pgmhdr.dport);
+
proto_tree_add_uint(pgm_tree, hf_pgm_main_type, tvb,
offset+4, 1, pgmhdr.type);
@@ -1600,6 +1606,9 @@ proto_register_pgm(void)
{ &hf_pgm_main_dport,
{ "Destination Port", "pgm.hdr.dport", FT_UINT16, BASE_DEC,
NULL, 0x0, "", HFILL }},
+ { &hf_pgm_port,
+ { "Port", "pgm.port", FT_UINT16, BASE_DEC,
+ NULL, 0x0, "", HFILL }},
{ &hf_pgm_main_type,
{ "Type", "pgm.hdr.type", FT_UINT8, BASE_HEX,
VALS(type_vals), 0x0, "", HFILL }},