Wireshark-bugs: [Wireshark-bugs] [Bug 3325] Added: FR MPLS PW support. Expanded: "default MPLS p

Date: Tue, 17 Mar 2009 23:45:00 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3325


Anders Broman <anders.broman@xxxxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anders.broman@xxxxxxxxxxxx




--- Comment #4 from Anders Broman <anders.broman@xxxxxxxxxxxx>  2009-03-17 23:44:57 PDT ---
Hi,
Just some small comment it's probably better to get the dissector handles
in the register routine rather than doing:
 call_dissector( find_dissector("pw_fr"), next_tvb, pinfo, tree);
for every packet.
e.g
 -  call_dissector( find_dissector("pw_fr"), next_tvb, pinfo, tree);
 +  call_dissector( pw_fr_handle, next_tvb, pinfo, tree);

Why do:
fecn_bit        = ( tvb_get_guint8(tvb, 0) & 0x8 ) >> 3;
:
proto_tree_add_uint( tr, hf_pw_fr_cw_fecn, tvb, 0, 1, fecn_bit );

Instead of
proto_tree_add_item( tr, hf_pw_fr_cw_fecn, tvb, 0, 1, FALSE );
:
                &hf_pw_fr_cw_fecn,
                {
                        "FECN bit", "pwfr.fecn", FT_UINT8, BASE_DEC, NULL,
0x08,
                        "FECN bit", HFILL
                }


Regards
Anders


-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.