diff options
author | Anders Broman <anders.broman@ericsson.com> | 2005-12-09 16:14:42 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2005-12-09 16:14:42 +0000 |
commit | fdec74f1c79f922b3527ee7994907e7413ca76f1 (patch) | |
tree | 031da7e635d279907fd6f46789e262aa1dc9a238 /epan/dissectors/packet-gre.c | |
parent | ba1b45448ae488730aec49d8f356f16ab359b8a7 (diff) | |
download | wireshark-fdec74f1c79f922b3527ee7994907e7413ca76f1.tar.gz wireshark-fdec74f1c79f922b3527ee7994907e7413ca76f1.tar.bz2 wireshark-fdec74f1c79f922b3527ee7994907e7413ca76f1.zip |
From: Deepak Jain
changes/addition to support decode for Next Hop Resolution Protocol
svn path=/trunk/; revision=16744
Diffstat (limited to 'epan/dissectors/packet-gre.c')
-rw-r--r-- | epan/dissectors/packet-gre.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/epan/dissectors/packet-gre.c b/epan/dissectors/packet-gre.c index 13b6d984ab..1a4a40f85f 100644 --- a/epan/dissectors/packet-gre.c +++ b/epan/dissectors/packet-gre.c @@ -76,6 +76,7 @@ static const value_string typevals[] = { { ETHERTYPE_IP, "IP" }, { SAP_OSINL5, "OSI"}, { GRE_WCCP, "WCCP"}, + { GRE_NHRP, "NHRP"}, { ETHERTYPE_IPX, "IPX"}, { ETHERTYPE_ETHBRIDGE, "Transparent Ethernet bridging" }, { ETHERTYPE_RAW_FR, "Frame Relay"}, @@ -362,12 +363,12 @@ proto_register_gre(void) { static hf_register_info hf[] = { { &hf_gre_proto, - { "Protocol Type", "gre.proto", FT_UINT16, BASE_HEX, VALS(typevals), 0x0, - "The protocol that is GRE encapsulated", HFILL } + { "Protocol Type", "gre.proto", FT_UINT16, BASE_HEX, VALS(typevals), 0x0, + "The protocol that is GRE encapsulated", HFILL } }, { &hf_gre_key, - { "GRE Key", "gre.key", FT_UINT32, BASE_HEX, NULL, 0x0, - "", HFILL } + { "GRE Key", "gre.key", FT_UINT32, BASE_HEX, NULL, 0x0, + "", HFILL } }, }; static gint *ett[] = { @@ -376,14 +377,14 @@ proto_register_gre(void) &ett_gre_wccp2_redirect_header, }; - proto_gre = proto_register_protocol("Generic Routing Encapsulation", - "GRE", "gre"); - proto_register_field_array(proto_gre, hf, array_length(hf)); + proto_gre = proto_register_protocol("Generic Routing Encapsulation", + "GRE", "gre"); + proto_register_field_array(proto_gre, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); /* subdissector code */ gre_dissector_table = register_dissector_table("gre.proto", - "GRE protocol type", FT_UINT16, BASE_HEX); + "GRE protocol type", FT_UINT16, BASE_HEX); } void |