Wireshark-bugs: [Wireshark-bugs] [Bug 6762] New: Consistent port range selection for dissectors
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6762
Summary: Consistent port range selection for dissectors
Product: Wireshark
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: Enhancement
Priority: Low
Component: Wireshark
AssignedTo: bugzilla-admin@xxxxxxxxxxxxx
ReportedBy: dvice_null@xxxxxxxxx
Build Information:
Paste the COMPLETE build information from "Help->About Wireshark", "wireshark
-v", or "tshark -v".
--
Currently:
- Every dissector can use "range" preference type, but they all have to parse
the preference value and register/unregister ports quite manually.
Suggestion:
- API call that just enables port range selection:
addUdpPortRangePreference([name in preferences file], [default range], [title
in preferences, or would it be better to let wireshark decide that also?]
e.g.
addUdpPortRangePreference("udp_port_range", "1000-2000", "UDP port range" );
And that would take care of everything. Showing the preference in the GUI and
registering/unregistering ports when ever preferences are changed (or using the
default port range if preferences are not touched).
- If dissector needs more control, it could still use the traditional way.
Advantages:
- Easier to make new dissectors
- Less bugs in dissectors (=due to having less code)
- Better usability in dissectors due to consistency between different
dissectors and improved user control as dissectors that currently might allow
only start and end port or even just a single port (because it was just easier
to write the code that way) would allow more flexible ranges.
More:
- Perhaps there are other common preferences that would enjoy from similar
feature.
- It would be nice to have this for Lua also.
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.