forked from osmocom/wireshark
From packet steve: add a filterable field for the GRE key.
svn path=/trunk/; revision=12069
This commit is contained in:
parent
a1968b1326
commit
c2fbce13fb
1
AUTHORS
1
AUTHORS
|
@ -2284,6 +2284,7 @@ Francisco Alcoba <francisco.alcoba [AT] ericsson.com>
|
|||
Thomas Palmer <tpalmer [AT] elmore.rr.com>
|
||||
Mårten Svantesson <f95-msv [AT] f.kth.se>
|
||||
Thomas Boehne <TBoehne [AT] ADwin.de>
|
||||
packet steve <packetsteve [AT] hotmail.com>
|
||||
|
||||
Alain Magloire <alainm[AT]rcsm.ece.mcgill.ca> was kind enough to
|
||||
give his permission to use his version of snprintf.c.
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
|
||||
static int proto_gre = -1;
|
||||
static int hf_gre_proto = -1;
|
||||
static int hf_gre_key = -1;
|
||||
|
||||
static gint ett_gre = -1;
|
||||
static gint ett_gre_flags = -1;
|
||||
|
@ -203,10 +204,8 @@ dissect_gre(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|||
offset += 2;
|
||||
}
|
||||
else {
|
||||
if (tree) {
|
||||
proto_tree_add_text(gre_tree, tvb, offset, 4,
|
||||
"Key: %u", tvb_get_ntohl(tvb, offset));
|
||||
}
|
||||
if (tree)
|
||||
proto_tree_add_item(gre_tree, hf_gre_key, tvb, offset, 4, FALSE);
|
||||
offset += 4;
|
||||
}
|
||||
}
|
||||
|
@ -360,6 +359,10 @@ proto_register_gre(void)
|
|||
{ "Protocol Type", "gre.proto", FT_UINT16, BASE_HEX, VALS(typevals), 0x0,
|
||||
"The protocol that is GRE encapsulated", HFILL }
|
||||
},
|
||||
{ &hf_gre_key,
|
||||
{ "Key", "gre.key", FT_UINT32, BASE_HEX, NULL, 0x0,
|
||||
"", HFILL }
|
||||
},
|
||||
};
|
||||
static gint *ett[] = {
|
||||
&ett_gre,
|
||||
|
|
Loading…
Reference in New Issue