ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 3732] v5.2-User Adaptation Layer and V5.2 Interface

Date: Sat, 25 Jul 2009 00:28:00 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3732





--- Comment #10 from Anders Broman <anders.broman@xxxxxxxxxxxx>  2009-07-25 00:27:56 PDT ---
Hi,
- Don't use global variables unless absolutly neccessary
  e,g (+static int isdn_all_address_tmp         = -1;)
  make them guin16:s and fetch the value with 
  guint16 tvb_get_ntohs(tvbuff_t*, gint offset); or
  guint16 tvb_get_letohs(tvbuff_t*, gint offset);
- Don't mix the declaration of hf_ variables with other declarations.
- Prefix all hf variables like hf_v52_ to keep with the style of other
dissectors

All the cases like
                col_append_str(pinfo->cinfo, COL_INFO, " | ");
                col_append_fstr(pinfo->cinfo, COL_INFO, "ref: %u",
bcc_all_address_tmp);

could be changed to
                col_append_fstr(pinfo->cinfo, COL_INFO, " | ref: %u",
bcc_all_address_tmp);
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.