static int hf_libvirt_status = -1;
static int hf_libvirt_stream = -1;
static int hf_libvirt_num_of_fds = -1;
-static int hf_libvirt_unknown = -1;
+int hf_libvirt_unknown = -1;
static gint ett_libvirt = -1;
#define XDR_PRIMITIVE_DISSECTOR(xtype, ctype, ftype) \
$c->add_header_file($name, sub {
dbg "*** Start parsing $proto\n";
+
+ $c->print("extern int hf_libvirt_unknown;\n");
+
my @lexs = Lexicalizer->parse($source);
for my $lex (@lexs) {
next if $lex->ident eq "enum $name\_procedure";
<% } %>
}
} else {
- proto_tree_add_text(tree, tvb, start, -1, "(unknown)");
+ proto_tree_add_item(tree, hf_libvirt_unknown, tvb, start, -1, ENC_NA);
}
return FALSE;
}
<% } %>
}
if (!rc) {
- proto_tree_add_text(tree, tvb, start, -1, "(unknown)");
+ proto_tree_add_item(tree, hf_libvirt_unknown, tvb, start, -1, ENC_NA);
}
return rc;
}