Wireshark-bugs: [Wireshark-bugs] [Bug 8562] New dissector for ISO 10747 Interdomain Routeing Pro
Date: Fri, 05 Apr 2013 22:03:24 +0000

Comment # 8 on bug 8562 from
Hi Mathias,

(In reply to comment #5)

> I don't know whether it is feasible to convert "Routing Path attributes" or
> "SNPA lists" into parseable substructures. 
> 

In dissect_attributes(), you could create a subtree for the attribute you
dissect, using proto_item_add_subtree() and a new ett_... variable. 

E.g. for SNPA, you'd define a string hf
        { &hf_idrp_snpa,
          { "SNPA", "idrp.snpa",
            FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }
        },

and call proto_tree_add_item(attr_tree, hf_idrp_snpa, tvb, offset, snpa_len,
ENC_ASCII|ENC_NA);
in the for(...nb_of_snpa...) loop

regards
Martin


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