Wireshark mailing list archives

Re: enum preferences vs Go Fish


From: mmann78 () netscape net
Date: Mon, 6 Apr 2015 20:52:54 -0400


So are you thinking along the lines of prefs_register_dissector_preference that would create a dropdown list (like an 
enum preference) based on dissector table entries?  I think my only real objection to Stig's suggestions was the 
thought of using something outside of a dissector table controlled by the "parent" dissector.  The whole point of this 
was to remove the explicit involvement of the dissector containing the dissector table.
 
 
-----Original Message-----
From: Guy Harris <guy () alum mit edu>
To: Developer support list for Wireshark <wireshark-dev () wireshark org>
Sent: Sat, Apr 4, 2015 7:23 pm
Subject: Re: [Wireshark-dev] enum preferences vs Go Fish



On Apr 4, 2015, at 1:55 AM, Stig Bjørlykke <stig () bjorlykke org> wrote:

On
Sat, Apr 4, 2015 at 3:30 AM,  <mmann78 () netscape net> wrote:
I may have gone
a little overboard, but I tried to remove all enumerated
preferences that
really should be Decode As.  There were enough nuances to
each situation,
that I made them all separate patches.


https://code.wireshark.org/review/7901 (P_MUL)

For P_Mul I want the
decode-as option to be available from the P_Mul
preferences, and from
(currently only in gtk) second-click in the
packet details pane and selecting
"Protocol Preferences" -> "Decode
Data PDU as".  This because I don't think
the users will think about
the global "Decode As" when trying to configure
P_Mul (or any other
protocol).

Hmm.

There are at least two flavors of
protocol "preference":

        1) "preferences" that correspond to what the
individual user prefers - for example, "Show {TCP,UDP} summary in protocol
tree";

        2) "preferences" that really correspond to how *a particular capture*
should be handled.

For category 2), we might want to have both a "global"
default setting (or, rather, a per-profile default setting), with the ability to
override the default without changing it.

In addition, some of those settings
might be per-conversation - and not necessarily at the level of the protocol to
which the setting applies, e.g. you might have XXX-over-TCP and want to control
how the XXX payload is dissected, on a per-TCP-connection basis.

"Decode As"
settings are in category 2.  I could see the *default* setting for those
preferences showing up in the UI as protocol preferences, with the "Decode As"
UI controlling the
override.

___________________________________________________________________________
Sent
via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:   
https://www.wireshark.org/lists/wireshark-dev
Unsubscribe:
https://wireshark.org/mailman/options/wireshark-dev
            
mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

 
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: