aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2012-03-30 17:38:10 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2012-03-30 17:38:10 +0000
commitccfcaa067b25851cc7ad5882e4663572f5f4c7ae (patch)
treee5407be124dc2dd53d1d19abb22a99c2654058ad /epan
parent6a60fdd5fc7105864eddf3ed23418a48585d5f14 (diff)
Allow unknown extension values to be filterable.
svn path=/trunk/; revision=41848
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-nhrp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/epan/dissectors/packet-nhrp.c b/epan/dissectors/packet-nhrp.c
index 94009dcb05..c3adaeaaa8 100644
--- a/epan/dissectors/packet-nhrp.c
+++ b/epan/dissectors/packet-nhrp.c
@@ -124,6 +124,7 @@ static int hf_nhrp_devcap_ext_srccap = -1;
static int hf_nhrp_devcap_ext_srccap_V = -1;
static int hf_nhrp_devcap_ext_dstcap = -1;
static int hf_nhrp_devcap_ext_dstcap_V = -1;
+static int hf_nhrp_unknown_ext_value = -1;
static gint ett_nhrp = -1;
static gint ett_nhrp_hdr = -1;
@@ -956,9 +957,8 @@ void dissect_nhrp_ext(tvbuff_t *tvb,
break;
default:
- proto_tree_add_text(nhrp_tree, tvb, offset, len,
- "Extension Value: %s",
- tvb_bytes_to_str(tvb, offset, len));
+ proto_tree_add_item(nhrp_tree, hf_nhrp_unknown_ext_value, tvb,
+ offset, len, ENC_NA);
break;
}
skip_switch:
@@ -1160,6 +1160,8 @@ proto_register_nhrp(void)
{ "Destination Capabilities", "nhrp.devcap_ext.dstcap", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL }},
{ &hf_nhrp_devcap_ext_dstcap_V,
{ "VPN-aware", "nhrp.devcap_ext.dstcap.V", FT_BOOLEAN, 32, NULL, 0x00000001, NULL, HFILL }},
+ { &hf_nhrp_unknown_ext_value,
+ { "Extension Value", "nhrp.unknown_ext.value", FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }},
};
static gint *ett[] = {