Wireshark-bugs: [Wireshark-bugs] [Bug 6758] Dissector for the Sony FeliCa Protocol

Date: Tue, 24 Jan 2012 10:33:34 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6758

--- Comment #9 from Chris Maynard <christopher.maynard@xxxxxxxxx> 2012-01-24 10:33:33 PST ---
(In reply to comment #4)
> If I can't manipulate the information column, or call subdissectors from within
> if(tree), do you have any suggestions for alternative methods?

It's not that you can't do it; you just can't do it within an if (tree) block. 
You just need to restructure the code so that call_dissector() and the
col_set_str()'s are invoked whether tree is NULL or not.  (Refer to the
comments in the skeleton code of README.developer for more details.)

Also:
1) You should use tvb_reported_length() instead of tvb_length().
2) For consistency, you might want to change the display filter of
"felica.sys_c" to "felica.sys_code", like "felica.svc_code".

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