static int hf_nmf_version_minor = -1;
static int hf_nmf_mode_value = -1;
static int hf_nmf_via_length = -1;
+static int hf_nmf_via_value = -1;
enum nmf_record_type {
NMF_VERSION_RECORD = 0x00,
const gchar *record_name = NULL;
enum nmf_record_type record_type;
guint32 size = 0;
+ const guint8 *str = NULL;
record_item = proto_tree_add_item(tree, hf_nmf_record, tvb, offset, -1, ENC_NA);
proto_item_append_text(record_item, ", start_offset=0x%x, ", (guint)offset);
return -1;
}
+ proto_tree_add_item_ret_string(record_tree, hf_nmf_via_value,
+ tvb, offset, size, ENC_UTF_8,
+ wmem_packet_scope(), &str);
offset += size;
+ proto_item_append_text(record_item, ": %s", (const gchar *)str);
break;
case NMF_KNOWN_ENCODING_RECORD:
offset += 1;
{ &hf_nmf_via_length,
{ "Length", "nmf.via.length",
FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL }},
+ { &hf_nmf_via_value,
+ { "Value", "nmf.via.value",
+ FT_STRING, BASE_NONE, NULL, 0x0, "Via URI", HFILL }},
};
proto_nmf = proto_register_protocol("NMF (.NET Message Framing Protocol)",