Wireshark-bugs: [Wireshark-bugs] [Bug 13258] Create new dissector plugin under infiniband

Date: Mon, 19 Dec 2016 13:50:40 +0000

changed bug 13258


What Removed Added
Status UNCONFIRMED RESOLVED
CC   [email protected]
Resolution --- NOTABUG

Comment # 1 on bug 13258 from
In your dissector, you can get the parent tree with the following function:

proto_tree_get_parent_tree()

By using the tree returned by this function, the dissection should appear at
the same level as the Infiniband one.

So your code should be something like this:

static int
dissect_plugname(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent, void*
data _U_)
{
    proto_tree *parent;

    parent = proto_tree_get_parent_tree(tree);

    proto_tree_add_item(parent, proto_plugname, tvb, offset, -1, ENC_NA);
...

For the future, please consider using [email protected] mailing list
for a development question instead of bugzilla which tracks real bugs /
enhancement requests.


You are receiving this mail because:
  • You are watching all bug changes.