[Wireshark-dev] Duplicate protocols in dissector tables

2015-10-29 Thread Michael Mann

I wrote a patch (https://code.wireshark.org/review/1405/) that may require 
discussion, so I thought I'd do it with a broader audience (because it impacts 
many dissectors whose individual authorship doesn't need to be added to a 
single Gerrit review)

The patch fixes bug 3949 
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3949) by enforcing that 
dissector tables that are used by Decode As can't have the same "protocol" 
(name) in multiple entries (exception - FT_STRING because the string value is 
used in the Decode As dialog, not the protocol name).  I've made a few patches 
in the past that fixed some of the duplicates by visual inspection, but this 
patch allows the code to do the work to ensure nothing was missed.

The part I felt was more "up for debate" was that I "defaulted" dissector 
tables to not allow duplicates.  As a test, I made all dissector tables not 
allow duplicates, then used printf and TShark to see how many duplicates there 
were.  If the dissector table wasn't used for Decode As, I would switch it to 
allowing duplicates.  Is that the way to go?  Should I "default" FT_STRING 
dissector tables to always allow duplicates?

The problem is that I'm limited to the dissector source in Wireshark and if 
there are dissector tables with known/intentional third-party dissectors with 
duplicate protocol registration, they will end up getting flagged.  I'd like to 
limit the number of follow-up commits with dissectors being corrected for 
allowing duplicates.  If you have specific dissector tables that you think 
should allow duplicates (or didn't like my "duplicate replacement"), please 
post in the review or email me privately.  The dialog I'm going for in the 
mailing list is for more general approaches (like all ASN.1 dissector tables 
should allow duplicates or you think the "default" should be to allow 
duplicates for all dissector tables)

I also plan to backport this to 2.0 (because I want the API change in there 
before it can't be changed).  Opinions on that welcome as well.


___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

[Wireshark-dev] Send comments in Gerrit

2015-10-29 Thread Juan Jose Martin Carrascosa
Hi guys,

I don't remember how to send the answers to the comments I got in a
Code-Review. They are all drafts right now.

Can anybody help me? Sorry for the dumb question :)

Thanks,
Juanjo Martin
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] Send comments in Gerrit

2015-10-29 Thread Evan Huus
Hit the "Reply..." button on the review page, and then hit "Post" in
the popup that appears.

Evan

On Thu, Oct 29, 2015 at 1:53 PM, Juan Jose Martin Carrascosa
 wrote:
> Hi guys,
>
> I don't remember how to send the answers to the comments I got in a
> Code-Review. They are all drafts right now.
>
> Can anybody help me? Sorry for the dumb question :)
>
> Thanks,
> Juanjo Martin
>
> ___
> Sent via:Wireshark-dev mailing list 
> Archives:https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>  mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe