Re: [Wireshark-dev] How to get a header_field_info instance from its id?

2015-08-19 Thread mmann78
The description of a "field type" for and hf_ field doesn't always correspond to its length on the wire. While many times that is the case for integers (FT_UINTx), it wouldn't be the case for strings or byte arrays (or many of the other field types). You also have cases were an integer field c

Re: [Wireshark-dev] Bug in Wireshark Display filter engine caused by optimization of proto tree during dissect

2015-08-21 Thread mmann78
Anders kind of beat me too it, but there are ways other than storing it in packet_info to exchange the data. I don't know enough about the dissectors themselves to suggest the "best" way, but please don't consider packet_info as an option. -Original Message- From: Richard Shar

Re: [Wireshark-dev] use of FT_PROTOCOL

2015-08-21 Thread mmann78
Another "I *think*" is that FT_PROTOCOL is more intended for hf_ items that are actually a protocol (typically a proto_xxx variable that uses the value returned from proto_register_protocol), then any "independent" fields registered through proto_register_field_array. The tree you pass into p

[Wireshark-dev] The journey of a thousand miles...

2015-09-20 Thread mmann78
... begins with a single step - Lao Tzu The thousand mile journey has been completed as all proto_tree_add_text calls within the Wireshark source have been converted to a "better" API. Because they have been converted, I think proto_tree_add_text should be removed from the Wireshark API. To

Re: [Wireshark-dev] The journey of a thousand miles...

2015-09-21 Thread mmann78
There is the "Major API changes" section of the release notes that I added a note to in the patch. -Original Message- From: Graham Bloice To: Developer support list for Wireshark Sent: Mon, Sep 21, 2015 5:05 am Subject: Re: [Wireshark-dev] The journey of a thousand miles...

Re: [Wireshark-dev] proto_tree_add_text - what's next (was: The journey of a thousand miles...)

2015-09-21 Thread mmann78
Thank you. It felt good to hit the button. What I'm hoping this change can do is open up better optimizations in proto.c I don't know enough to know how/what those optimizations could be, I just saw proto_tree_add_text as a roadblock. We still have a few other "text node" APIs if that i

[Wireshark-dev] Should an IPv4 netmask be its own fieldtype?

2015-09-30 Thread mmann78
There's a discussion in a patch review (https://code.wireshark.org/review/10438/), that I think should get more visibility. The question is "should an IPv4 netmask field be its own fieldtype?" The main problem being that netmasks are being treated as IPv4 fields and are attempted to be named

Re: [Wireshark-dev] Should an IPv4 netmask be its own fieldtype?

2015-10-01 Thread mmann78
But doesn't any of these potential representations (mostly network prefix) require a specific field type (and not a display type) for display filtering purposes? -Original Message- From: Jeffrey Smith To: Developer support list for Wireshark Sent: Thu, Oct 1, 2015 1:46 am Subject:

[Wireshark-dev] "private" dissectors

2015-10-14 Thread mmann78
While reviewing the DOF dissectors (https://code.wireshark.org/review/8869), I noticed that all of the registered dissectors used proto_set_cant_toggle() and proto_mark_private(). I don't think either is appropriate for a "regular" dissector, but I had never seen proto_mark_private(), so I loo

Re: [Wireshark-dev] Checksum filterable fields

2013-07-02 Thread mmann78
expert_checksum_vals. -Original Message- From: Alexis La Goutte To: mmann78 Cc: Developer support list for Wireshark Sent: Tue, Jul 2, 2013 3:29 pm Subject: Re: [Wireshark-dev] Checksum filterable fields On Tue, Jul 2, 2013 at 9:17 PM, wrote: I like your idea better as it pr

Re: [Wireshark-dev] [Wireshark-commits] rev 50322: /trunk/epan/ /trunk/epan/: expert.c expert.h

2013-07-02 Thread mmann78
Done in rev 50323. -Original Message- From: Maynard, Chris To: wireshark-dev Sent: Tue, Jul 2, 2013 4:04 pm Subject: Re: [Wireshark-dev] [Wireshark-commits] rev 50322: /trunk/epan/ /trunk/epan/: expert.c expert.h Should we separate "Unknown/Disabled"? Checksum validation may be dis

Re: [Wireshark-dev] [Wireshark-commits] rev 49559: /trunk/epan/ /trunk/epan/: epan.c expert.c expert.h packet.c proto.c

2013-07-06 Thread mmann78
No explicit plans, it was just a copy/paste/merge of hf_ and preference functionality. While I think the GUI could take advantage of it, I was torn as to which GUI (GTK or qt) any new functionality would be developed. Since I don't know either that well, I remain concentrated on making all

Re: [Wireshark-dev] RFC: Protocol fields list (reduce memory usage)

2013-07-08 Thread mmann78
What about dissectors that register fields from other protocols? See the output of checkfiltername.pl run over the dissectors directory. Many of the display filters it (falsely) complains about are legitimate filter names because dissectors "share" fields. -Original Message- From:

[Wireshark-dev] convert_proto_tree_add_text.pl

2013-07-13 Thread mmann78
I wrote a utlity to help convert proto_tree_add_text calls into proto_tree_add_item calls. The script is convert_proto_tree_add_text.pl and it can be found in the tools directory. I wanted to share the data (attached) of my first test run on packet-dlsw.c as a guide to those interested in usi

Re: [Wireshark-dev] Fields with symbolic values defined in another file

2013-07-23 Thread mmann78
Or possibly merge all of the small packet-scsi-*.h files into a single header file and add the necessary osd values there? I'm torn between encapsulation and too many files. The dissectors themselves are large enough to warrant their own files, but all of the header files are rather small.

Re: [Wireshark-dev] [Wireshark-commits] rev 51844: /trunk/epan/ /trunk/epan/: expert.c expert.h proto.c /trunk/epan/wslua/: init_wslua.c wslua_tree.c

2013-09-08 Thread mmann78
The problem is that all "external" expert APIs end up calling static functions within expert.c and I really don't want to have that much copy/paste for something that will hopefully be removed shortly. Since the word is now out through the -commit and -dev mailing lists, people should conside

[Wireshark-dev] VALS() with populated "unknown string"

2013-09-16 Thread mmann78
Is there a way to provide the "unknown string" for the val_to_str call made in hf_ registration (ie some derivation of the VALS() macro)? There are many proto_tree_add_[u]int_format[_value] calls that are done strictly to provided an "unknown string" for the val_to_str that is different than

[Wireshark-dev] VALS() with populated "unknown string"

2013-09-16 Thread mmann78
Is there a way to provide the "unknown string" for the val_to_str call made in hf_ registration (ie some derivation of the VALS() macro)? There are many proto_tree_add_[u]int_format[_value] calls that are done strictly to provided an "unknown string" for the val_to_str that is different than

Re: [Wireshark-dev] VALS() with populated "unknown string"

2013-09-16 Thread mmann78
No, the issue is a dissector wants to use "reserved" or "Unknown ", etc instead of the strict "Unknown". Providing the numeric value that accompanies that enumeration is almost secondary. I think Jakub's idea is a good one, just didn't know if we wanted to convert all (most) value_strings

Re: [Wireshark-dev] Removal of Visual Studio solution and project files

2013-09-17 Thread mmann78
-1 from me. It's my debugger of choice. While an integrated solution would be better, I'm okay with the current project files. The default solution is nice to add the dissectors/files you're working on/consistently modify for quick reference. Outside of the debugger, I realize it is just a

Re: [Wireshark-dev] Removal of Visual Studio solution and project files

2013-09-18 Thread mmann78
I guess I like the overall setup of the solution file and the ability to jump between tshark and Wireshark easily without opening new files. I don't believe the "setup Windows development" steps (which I thought were very good) mention supporting building Wireshark through the solution file, i

[Wireshark-dev] Wireshark PIDL generated dissectors

2013-10-01 Thread mmann78
The check_col function in the Wireshark source has been deprecated for awhile, but never officially removed. I've been modifying the source (removing calls) so that it can be officially removed. The last big hurdle was the DCE/RPC generated dissector files. I've had a difficult time trying t

[Wireshark-dev] Wireshark PIDL generated dissectors

2013-10-01 Thread mmann78
The check_col function in the Wireshark source has been deprecated for awhile, but never officially removed. I've been modifying the source (removing calls) so that it can be officially removed. The last big hurdle was the DCE/RPC generated dissector files. I've had a difficult time trying t

Re: [Wireshark-dev] [Wireshark-commits] rev 52341: /trunk/epan/ /trunk/epan/dissectors/: packet-usb-video.c /trunk/epan/: expert.h proto.c proto.h

2013-10-04 Thread mmann78
I like the suggestion of a "_ws." prefix, but my hesitation is backwards compatibility. The only "not real" protocol filter I use consistently is "malformed" and I like that simplicity. And the other "protocols" in show_exception.c seem reasonable, but like you said, it starts to get ugly for

Re: [Wireshark-dev] [Wireshark-commits] rev 52341: /trunk/epan/ /trunk/epan/dissectors/: packet-usb-video.c /trunk/epan/: expert.h proto.c proto.h

2013-10-05 Thread mmann78
The attached patch implements the "_ws." prefix for "wireshark (internal) protocols". Taps were (intentionally) left alone. The filters themselves work, but it exposes a bug (?) with the display filter dialog - the intellisense/autocomplete doesn't look for "protocols" after the first period

Re: [Wireshark-dev] Handling of generated dissectors

2013-10-07 Thread mmann78
I think the issue is that not all generated dissectors can be generated on all platforms Wireshark supports (for varying reasons). There were "separate steps" (outside of the Wireshark build process) to generate the PIDL dissector source as well as idl2wrs (GIOP) ones and I thought there were

[Wireshark-dev] fuzzing UDP/TCP dissectors with no port assignment

2013-10-08 Thread mmann78
Anders brought up a question in bug 9241 that I've always been curious about (and I think the discussion is better served on -dev than the bug). We have many TCP/UDP dissectors that don't have an IANA assigned port number or are not setup as heuristic dissectors. In these cases their port numb

Re: [Wireshark-dev] [Wireshark-commits] rev 52462: /trunk/ /trunk/docbook/: release-notes.asciidoc /trunk/epan/: expert.c packet.c proto.c show_exception.c /trunk/ui/gtk/: main_menubar.c prefs_dlg.c /

2013-10-09 Thread mmann78
Done in r52474. -Original Message- From: Joerg Mayer To: wireshark-dev Sent: Wed, Oct 9, 2013 1:57 pm Subject: Re: [Wireshark-dev] [Wireshark-commits] rev 52462: /trunk/ /trunk/docbook/: release-notes.asciidoc /trunk/epan/: expert.c packet.c proto.c show_exception.c /trunk/ui/gtk/:

Re: [Wireshark-dev] 1.11.0 release

2013-10-10 Thread mmann78
My vote would be to install in a central location and make it just another step in http://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html, just like installing Visual Studio. -Original Message- From: Gerald Combs To: Developer support list for Wireshark Sent: Wed, Oct 9, 2

Re: [Wireshark-dev] compile error in latest svn tree at a 32 bit Gentoo Linux

2013-10-18 Thread mmann78
Fixed in r52670. -Original Message- From: Toralf Förster To: wireshark-dev Sent: Fri, Oct 18, 2013 10:35 am Subject: [Wireshark-dev] compile error in latest svn tree at a 32 bit Gentoo Linux introduced between 52661:52666 : CC libdissectors_la-packet-dplay.lo packet-dns.c: In

Re: [Wireshark-dev] Wireshark PIDL generated dissectors

2013-10-21 Thread mmann78
These are independent of the bugs logged to Bugzilla, correct? -Original Message- From: Matthieu Patou To: Joerg Mayer Cc: Developer support list for Wireshark ; Samba Technical ; Andrew Bartlett Sent: Mon, Oct 21, 2013 10:17 am Subject: Re: [Wireshark-dev] Wireshark PIDL generated d

Re: [Wireshark-dev] Wireshark PIDL generated dissectors

2013-10-21 Thread mmann78
Checked most of the patches into r52744 (http://anonsvn.wireshark.org/viewvc?view=revision&revision=52744) Didn't integrate 0010-frsrpc-Regenerate-frsrpc-due-to-changes-in-the-pidl-.patch 0016-Regenerate-the-dnserver.patch due to compile errors on Windows from applying the patch in bug 9301

Re: [Wireshark-dev] Fwd: [Wireshark-commits] rev 52741: Add APIs for PIDL generated code to return the value of the integer that was dissected.

2013-10-21 Thread mmann78
These PIDL APIs do a wrapper of "add integer to tree" + "add integer to column (info) data", not just a simple "add integer to tree, return value" -Original Message- From: Anders Broman To: Developer support list for Wireshark Sent: Mon, Oct 21, 2013 3:54 pm Subject: [Wireshark-dev]

[Wireshark-dev] Windows build broken in r52812 (for building GTK)

2013-10-24 Thread mmann78
Moving sctp_stat.c to the "independent" ui directory causes to not be found, causing a bunch of compile errors. Cursory glance says makefiles (.nmake) should be setup to have the necessary GTK include directories as part of the build, but apparently not.

Re: [Wireshark-dev] Windows build broken in r52812 (for building GTK)

2013-10-24 Thread mmann78
I only tried to remove it in ui/sctp_stat.c, not the .h file (if it exists there too) and it didn't work. ui/sctp_stat.c still includes other ui/gtk/ header files, so I'm guessing the dependency is still there. -Original Message- From: Alexis La Goutte To: Developer support list for

Re: [Wireshark-dev] Wireshark PIDL generated dissectors

2013-10-27 Thread mmann78
ant to make the fix in the Wireshark source. -Original Message- From: Matthieu Patou To: mmann78 ; wireshark-dev Cc: abartlet ; samba-technical Sent: Sat, Oct 26, 2013 7:26 pm Subject: Re: [Wireshark-dev] Wireshark PIDL generated dissectors On 10/21/2013 12:48 PM, mman...@net

Re: [Wireshark-dev] r52963 introduced a build error

2013-10-30 Thread mmann78
I believe that was already addressed in r52965. (r52971 also has some "compiler cleanup") -Original Message- From: Toralf Förster To: wireshark-dev Sent: Wed, Oct 30, 2013 10:13 am Subject: [Wireshark-dev] r52963 introduced a build error

Re: [Wireshark-dev] Wireshark PIDL generated dissectors

2013-11-03 Thread mmann78
dissectors to compile on Windows. Michael -Original Message- From: Matthieu Patou To: mmann78 ; wireshark-dev Cc: abartlet ; samba-technical Sent: Sun, Oct 27, 2013 1:41 pm Subject: Re: [Wireshark-dev] Wireshark PIDL generated dissectors On 10/27/2013 09:16 AM

Re: [Wireshark-dev] Wireshark PIDL generated dissectors

2013-11-04 Thread mmann78
oth places is enough. -Original Message- From: Matthieu Patou To: mmann78 ; wireshark-dev Cc: abartlet ; samba-technical Sent: Mon, Nov 4, 2013 3:25 am Subject: Re: [Wireshark-dev] Wireshark PIDL generated dissectors On 11/03/2013 08:26 AM, mman...@netscape.net wrote: > Matthieu, >

Re: [Wireshark-dev] [Wireshark-commits] rev 53118: /trunk/epan/ /trunk/epan/: reassemble.c

2013-11-06 Thread mmann78
Reverted change in r53130. -Original Message- From: Guy Harris To: wireshark-dev Sent: Wed, Nov 6, 2013 5:50 pm Subject: Re: [Wireshark-dev] [Wireshark-commits] rev 53118: /trunk/epan/ /trunk/epan/: reassemble.c On Nov 6, 2013, at 1:59 PM, mm...@wireshark.org wrote: > http://anons

[Wireshark-dev] Add data parameter to tcp_dissect_pdus?

2013-11-07 Thread mmann78
Should tcp_dissect_pdus() add a data parameter to allow "private data" that was passed to a dissector running over TCP to be used by the dissector itself? I debated this when removing the pinfo->private data used to pass struct tcpinfo data in r53036. The only current dissector that uses tc

[Wireshark-dev] capture_file* in dissector code

2013-11-13 Thread mmann78
I was looking at making the "Decode As" functionality more generic, but my current solution involves having dissectors handle a callback function that passes in a capture_file* as an argument. Is that valid or does it cross library boundaries creating unwanted dependencies?_

Re: [Wireshark-dev] capture_file* in dissector code

2013-11-13 Thread mmann78
The ulterior motive is actually to reduce members in the packet_info* structure. Some members could be converted to using p_get_proto_data/p_add_proto_data, but the "protocol ID" is required for that API. While I've seen it hacked into a few places in the GUI, I think it's better design if

Re: [Wireshark-dev] capture_file* in dissector code

2013-11-13 Thread mmann78
I don't think the GUI should have any specific dissector knowledge unless "absolutely necessary" (separating "business logic" from UI). I know that's not how all the code is written now, but I think it's something to strive for, especially with the switch to qt (and how I've interpreted som

Re: [Wireshark-dev] capture_file* in dissector code

2013-11-13 Thread mmann78
No, Decode As is currently quite limited (hardcoded) in what you can change dissection to. But I'm guessing ethernet, IP, TCP/UDP (which are all supported) cover a large majority of users. There can be multiple factors to consider and that's why (I'm guessing) it's as complex as it is (Haven'

Re: [Wireshark-dev] capture_file* in dissector code

2013-11-13 Thread mmann78
A related question - Is packet_info->phdr == capture_file->phdr? That would allow me to get the data I need always from packet_info* and not need the capture_file* -Original Message- From: Jakub Zawadzki To: Developer support list for Wireshark Sent: Wed, Nov 13, 2013 3:39 pm Subje

Re: [Wireshark-dev] [Wireshark-commits] rev 53473: /trunk/ui/ /trunk/ui/gtk/: main_menubar.c /trunk/ui/qt/: main_window_slots.cpp

2013-11-21 Thread mmann78
My similar, but less thorough idea was to have the "GUI" (GTK+/Qt/tshark) do the proto_* value lookup (of only the protocols it needed) during some "initialize" function, just like dissectors grab the "handles" of the other dissectors they need in the proto_reg_handoff function. Could making t

Re: [Wireshark-dev] [Wireshark-commits] rev 53473: /trunk/ui/ /trunk/ui/gtk/: main_menubar.c /trunk/ui/qt/: main_window_slots.cpp

2013-11-21 Thread mmann78
Of the ones I needed/interested in ("eth", "ip", "ipv6", "tcp", "udp", "sctp") only "ip" had its proto_* variable in a header (in the dissectors directory). Am I looking in the wrong place? Do you think that's something I should add for the other dissectors? I know string compares are more e

Re: [Wireshark-dev] [Wireshark-commits] rev 53489: /trunk/epan/ /trunk/epan/dissectors/: packet-ethertype.c packet-exported_pdu.c packet-infiniband.c packet-mpls.c packet-pw-eth.c packet-sctp.c /trunk

2013-11-21 Thread mmann78
Should there be separate APIs or should p_add_proto_data have a memory allocator function and packet_scope() would go to info->pool and everything else (NULL or file_scope) would go to where it is now? -Original Message- From: Evan Huus To: Developer support list for Wireshark Sent:

Re: [Wireshark-dev] How to replace proto_tree_add_text()

2013-11-22 Thread mmann78
I developed convert_proto_tree_add_text.pl (in tools dir) for just this reason. See http://www.wireshark.org/lists/wireshark-dev/201307/msg00073.html for brief explanation. If you're looking specifically at packet-ansi_a.c, I'm not sure how straightforward the conversion will be. Without an

[Wireshark-dev] proto_field_is_referenced

2013-11-23 Thread mmann78
Is proto_field_is_references still a valid function? In looking at the intent, it either looks completely useless or should be used on almost all dissectors. I was leaning more towards useless because I can't think of a scenario where tree (is already) != NULL, yet a dissector would be called

Re: [Wireshark-dev] Modifying custom giop dissector

2013-11-27 Thread mmann78
So are you generating the dissector and then manually modifying it with your "timecodeString" function? If so, then I believe you want proto_tree_add_*_format_value Using your example: int s_octet4 = get_CDR_long(tvb,offset,stream_is_big_endian, boundary); proto_tree_add_int_format_value(

Re: [Wireshark-dev] Modifying custom giop dissector

2013-11-27 Thread mmann78
If your type is FT_INT64 you use proto_tree_add_int64[_format_value] If your type is FT_UINT64 you use proto_tree_add_uint64[_format_value] Same is true for 32-bit values- signed and unsigned types have different APIs. -Original Message- From: andy.ling To: Developer support list for

Re: [Wireshark-dev] Modifying custom giop dissector

2013-11-27 Thread mmann78
I don't think a solution currently exists with the parser. I think you need to modify the omniorb parser (patches welcome!), either by adding support for "additional" fields in the IDL or somehow providing a "custom" data hook (as I don't think one is currently provided), perhaps in a file s

Re: [Wireshark-dev] [Wireshark-commits] rev 53620: /trunk/epan/dissectors/ /trunk/epan/dissectors/: packet-fc.c packet-fc.h packet-fcp.c

2013-11-28 Thread mmann78
Fixed in r53621. -Original Message- From: Guy Harris To: wireshark-dev Sent: Thu, Nov 28, 2013 1:10 am Subject: Re: [Wireshark-dev] [Wireshark-commits] rev 53620: /trunk/epan/dissectors/ /trunk/epan/dissectors/: packet-fc.c packet-fc.h packet-fcp.c On Nov 27, 2013, at 5:49 PM, mm.

Re: [Wireshark-dev] [Wireshark-commits] rev 53681: /trunk/codecs/SBC/ /trunk/codecs/SBC/: sbc.c

2013-12-01 Thread mmann78
Including config.h for the "conditional" codecs (sbc/G722/G726) breaks the build on Windows. I originally had removed it (because it wasn't present on the existing codecs), but I guess the "right" fix is adding an include directory to the makefile.___

Re: [Wireshark-dev] Windows build setup - Concept required

2013-12-05 Thread mmann78
+1 -Original Message- From: Pascal Quantin To: Developer support list for Wireshark Sent: Thu, Dec 5, 2013 3:33 pm Subject: Re: [Wireshark-dev] Windows build setup - Concept required Personally I find the GTK2 GUI much more polished than GTK3 on Windows (maybe just a matter of ta

Re: [Wireshark-dev] To display reserved fields or not display reserved fields, that is the question...

2013-12-08 Thread mmann78
The best would be proto_tree_add_item(seg_param_tree, hf_scsi_reserved, tvb, offset, 2, ENC_BIG_ENDIAN) (obviously may need adjusting for your specfic situation) offset += 2 so it's filterable (and users can possibly find situtions where reserved fields aren't 0) Different hf_ filters varia

[Wireshark-dev] large signed 40-56bit integers

2013-12-14 Thread mmann78
There is a bug in Wireshark when a dissector has an hf_ variable of type FT_INT64 and the requested length of the field is < 8 bytes. There is no accounting for the sign bit (which has led dissectors to come up with their own solutions). The attached patch attempts to address it. The questio

Re: [Wireshark-dev] Is this patch to semcheck.c valid (handling FT_SYSTEM_ID) ?

2013-12-23 Thread mmann78
I believe I just missed committing that file when I added the FT_SYSTEM_ID type. Committed (functionality) to rev 54394 and thanks for the catch! -Original Message- From: Martin Mathieson To: Developer support list for Wireshark Sent: Mon, Dec 23, 2013 12:44 pm Subject: [Wireshark-d

Re: [Wireshark-dev] 3GPP 23.038 encoding and string length

2013-12-24 Thread mmann78
Isn't it simple enough to add a proto_tree_add_gsm_sms_item (or similar) API and enforce the hf_ variables have ENC_3GPP_TS_23_038 encoding? Shouldn't that be able to wrap the gsm_sms_char_7bit_unpack() / gsm_sms_chars_to_utf8()? I don't think the meaning of the length field of proto_tree_add

[Wireshark-dev] fighting for dissector independence

2013-12-30 Thread mmann78
I started working on the "Fileshark" concept [1]. As part of the architecture, I don't believe "Fileshark" should include the dissector.lib as noted in the original discussion [2], but should include the rest of the epan directory ($LIBWIRESHARK_OBJECTS). I hacked the nmake configuration i

Re: [Wireshark-dev] [Wireshark-bugs] [Bug 9607] TFShark (Terminal FileShark)

2014-01-02 Thread mmann78
Although I have to say I kinda liked Michal's suggestion of Omnivoroushark (or something similar with "omni") if fileshark doesn't work out. My only complaint with Omnivoroushark is that we want to separate capture files (Wireshark) from non-capture (fileshark) files, so it's not really "omni"

Re: [Wireshark-dev] Linking error tfshark

2014-01-08 Thread mmann78
My guess is that it doesn't like the commented out tfshark-tap-register.c (that I was using as a placeholder). The attached patch fixes that. -Original Message- From: Joerg Mayer To: wireshark-dev Sent: Wed, Jan 8, 2014 3:01 am Subject: [Wireshark-dev] Linking error tfshark Linking

Re: [Wireshark-dev] Expert item for TCP RST flag

2014-01-08 Thread mmann78
One of the "features" that could be added now that expert items are registered/filtered is user assigned error levels for individual expert items (because certain expert scenarios may be more/less important to various users). Patches welcome! -Original Message- From: Gerald Combs To:

Re: [Wireshark-dev] Linking error tfshark

2014-01-10 Thread mmann78
Unfortunately, yes it still needs to link with libwiretap. I believe my initial copy/paste tried to remove it but I ended up restoring it so I could at least commit the "initial" version of fileshark. Perhaps I didn't restore it in all build configurations. You can send me a patch for autoto

[Wireshark-dev] Wireshark-dev] Linking error tfshark

2014-01-11 Thread mmann78
per support list for Wireshark ; mmann78 Sent: Fri, Jan 10, 2014 8:07 am Subject: Re: [Wireshark-dev] Linking error tfshark Ok, I sent patch to you. I have one more question: how tfshark works? ./tshark -V -r file.elf # works ok ./tfshark -V -r file.elf # does not work How to display dissector

Re: [Wireshark-dev] Omnivorous Shark

2014-01-31 Thread mmann78
Without looking at the details of the patch, my thoughts are: 1. I like the fact that a "workaround" has been created for insufficient heuristics. I just hope it doesn't have the unintended consequence of weaker heuristics being created. 2. What I don't like is getting non capture file sup

Re: [Wireshark-dev] -commits emails

2014-02-12 Thread mmann78
On a related note, it seems like Gerrit encourages more comments within its interface when discussing a bug/enhancement then doing it Bugzilla (where all outside patches used to go through). It was (is) always nice to have a "masochist" (-bugs subscriber) interject something into a bug in Bug

Re: [Wireshark-dev] -commits emails

2014-02-12 Thread mmann78
The reason I put "list" in quotes was because I wasn't sure of the form. I've never followed -bugs, but I do frequently skim the archive. And I understand why others follow or skim -commits. I was okay with the interface TortoiseSVN provided me when grabbing the latest code if I wanted to f

Re: [Wireshark-dev] Fix bug in GSM MAP, have problems with GIT

2014-03-11 Thread mmann78
My biggest frustration is noted by the statement: "However, as most use on other platforms tends to be command-line git, most books and guides tend to concentrate on that so windows users may actually find it easier to start with the command line and then move to graphical clients when they ar

[Wireshark-dev] Viewing code in Gerrit

2014-03-24 Thread mmann78
I can't consistently view the code of patches submitted to Gerrit (the Side-by-Side or Unified links). I've tried on IE8 and 9 as well as Firefox v28 (all on Windows) and get the same consistently inconsistent results (some patches work, some don't. Some files within a particular patch are vi

Re: [Wireshark-dev] how to decode a packet based on the flags in the previous packet.

2014-04-01 Thread mmann78
See doc/README.request_response_tracking -Original Message- From: qiaoyin_yang To: wireshark-dev Sent: Tue, Apr 1, 2014 10:14 am Subject: [Wireshark-dev] how to decode a packet based on the flags in the previous packet. Hello All, I am writing a dissector. The capturedtraffic has

Re: [Wireshark-dev] Bugzilla and Gerrit

2014-04-02 Thread mmann78
You don't need to open a Bugzilla ticket strictly for an enhancement. However you may want to open a Bugzilla ticket to supply a capture that exercises a dissector enhancement (for fuzzbot and regression testing) if one hasn't already been provided. You can then reference the Gerrit link in th

[Wireshark-dev] checkhf.pl fails only on pre-commit hook

2014-04-04 Thread mmann78
I've taken the pre-commit hook file provided in \tools and put it in my git hooks folder. However, whenever I commit something (I've focused mostly on dissector patches and they all fail this way), it fails with "Search pattern not terminated at ./tools/checkhf.pl line 564." When I run checkh

Re: [Wireshark-dev] checkhf.pl fails only on pre-commit hook

2014-04-05 Thread mmann78
Many thanks! Fix was committed in https://code.wireshark.org/review/#/c/971/ (Still not sure of the "why" it failed , but I'll gladly take this solution) -Original Message- From: Hadriel Kaplan To: Developer support list for Wireshark Sent: Fri, Apr 4, 2014 11:56 pm Subject: Re: [Wir

[Wireshark-dev] What does [WIP] really mean?

2014-04-11 Thread mmann78
I've seen a handful of patches submitted to Gerrit with [WIP] in the title. Obviously this means "work in progress", but what does it mean for reviewers of the patch? Should reviews be held off until more/better patches are submitted (with help accepted)? Notification that a feature is being

Re: [Wireshark-dev] Visual studio versions

2014-04-16 Thread mmann78
He's not the only one! ;) https://en.wikipedia.org/wiki/Usage_share_of_operating_systems -Original Message- From: Graham Bloice To: Developer support list for Wireshark Sent: Wed, Apr 16, 2014 11:20 am Subject: Re: [Wireshark-dev] Visual studio versions On 16 April 2014 16:03, Ande

Re: [Wireshark-dev] Mac compilation broken

2014-04-17 Thread mmann78
Congratulations Roland! You have just won yourself a free copy of Wireshark on the platform of your choice. Just go to http://www.wireshark.org/download.html to claim your prize and enter "Bug1" in the checkout screen. (Wait... maybe I shouldn't give out the free copy checkout code t

Re: [Wireshark-dev] Plugin Dissector vs Builtin Dissector

2014-04-23 Thread mmann78
The short answer is "write it as a builtin" if you plan on submitting the dissector code to Wireshark. Plugins come with more "file bloat", so they are discouraged when becoming part of the official Wireshark source. Many developers start with the plugin for faster build time, when the dissec

Re: [Wireshark-dev] [Wireshark-commits] master fc5d8db: Create the HTTP tree after we're assured it's HTTP. Otherwise a bogus tree is created when HTTP2 traffic is found.

2014-04-24 Thread mmann78
After looking at this, I'd have to say the DTLS decryption test is "flawed". It sets up a key to decifer traffic as HTTP, but it's not really HTTP, it's just a bunch of ASCII strings. I can change it to any of the valid dissectors and presuming the DTLS decyption is done correctly (which I pr

[Wireshark-dev] pre-commit hook issue

2014-04-26 Thread mmann78
I have found myself from time to time needing to temporarily disable the pre-commit hook (ie error is ignorable). The situation I ran into today I don't think should have been. I created a patch that removed a header file from epan\dissectors (packet-ipsec.h). When I tried to commit it, th

Re: [Wireshark-dev] pre-commit hook issue

2014-04-26 Thread mmann78
I believe I just deleted the file in Windows Explorer, but the "commit list" (and their file status) doesn't look any different than if I had used the git menu. -Original Message- From: Evan Huus To: Developer support list for Wireshark Sent: Sat, Apr 26, 2014 10:24 pm Subject: R

Re: [Wireshark-dev] Gerrit down?

2014-05-03 Thread mmann78
Yes. I would say that it's down. -Original Message- From: Anders Broman To: Developer support list for Wireshark ; Gerald Combs Sent: Sat, May 3, 2014 6:37 am Subject: [Wireshark-dev] Gerrit down? Hi, Is any one else having problem accessing Gerrit? Regards Anders ___

[Wireshark-dev] Conversation filters

2014-05-26 Thread mmann78
I wanted to add a "conversation filter" for a dissector. I followed the "GUI independent" API of register_dissector_filter() and successfully added my filter under the Analyze -> Conversation Filter menu item. However, I noticed a "different" conversation filter menu when right-clicking on a

Re: [Wireshark-dev] Are tfshark/filetap ready for 1.12?

2014-06-06 Thread mmann78
I'm okay with leaving them out. I was hoping they would have been farther along by now. I also thought Sharkfest will infuse some life back into them as I think the topic of "managing multi-frame or bundled PDU"s is critical to taking "Fileshark" any farther. Michael -Original Messa

[Wireshark-dev] proto_tree_add_subtree[_format]

2014-06-22 Thread mmann78
In an effort to further remove proto_tree_add_text calls from the Wireshark source, I've created proto_tree_add_subtree and proto_tree_add_subtree_format. The use case is to combine proto_tree_add_text + proto_item_add_subtree into a single call when the intent of the dissector is to create a

[Wireshark-dev] DCERPC generated files

2014-06-24 Thread mmann78
To the discussion on "generated" source files - I still can't build the DCERPC files on Windows (I blame Yapp, but it could also be ignorance). It would be GREAT if the build magicians could fix that. However, thanks to Evan at Sharkfest, I now have a lubuntu setup that I am trying to learn.

Re: [Wireshark-dev] proto_tree_add_subtree[_format]

2014-06-25 Thread mmann78
I have no objection to adding G_GNUC_WARN_UNUSED_RESULT to proto_tree_add_subtree[_format] as it appears to already be used on proto_item_add_subtree. The intent of proto_tree_add_subtree[_format] is more directed at trying to remove proto_tree_add_text calls. The use of proto_tree_add_text

Re: [Wireshark-dev] Should dissect_tcp_pdus be used as much as possible?

2014-07-04 Thread mmann78
Yes I think tcp_dissect_pdus should be used as much as possible. I even made a list (at least a few months ago) of "potential" dissectors that could be converted: packet-banana.c packet-beep.c - maybe packet-bzr.c packet-cigi.c packet-classicstun.c packet-distcc.c packet-dtn.c packet-dtpt.c p

Re: [Wireshark-dev] Should dissect_tcp_pdus be used as much as possible?

2014-07-04 Thread mmann78
The list I provided (http://www.wireshark.org/lists/wireshark-dev/201407/msg00018.html) follows the criteria mentioned by Guy. The "maybes" are where it appeared at first/quick glance that the "contents can be calculated within the first N bytes", but there was too much logic/code to follow t

[Wireshark-dev] proto_tree_add_subtree[_format]

2014-07-09 Thread mmann78
I finished the conversion of proto_tree_add_text calls that were acting as "subtree labels" into proto_tree_add_subtree[_format]. This removed almost 4000 calls in the dissector directory (over 4000 if you include the plugins) and brings the current total proto_tree_add_text count in the disse

Re: [Wireshark-dev] proto_tree_add_subtree[_format]

2014-07-10 Thread mmann78
The "not useless" probably fall under 2 categories: 1. Field label with no printf style arguments, usually for a byte array. Popular ones would be "Data", "Padding" or "Reserved". I know these aren't filterable, but sometimes I like (understand) how it's displayed (just highlighting bytes) in

Re: [Wireshark-dev] proto_tree_add_subtree[_format]

2014-07-10 Thread mmann78
Adding a subtree requires (up to) 2 additional arguments (ett and if proto_item* is still going to be used), and I just thought it would be "API bloat" to add a proto_tree_add_item_with_subtree (and all of the other possible combinations). proto_item_add_subtree still has its uses ;) Next pi

Re: [Wireshark-dev] Backport request for proto_tree_add_subtree[_format]

2014-07-10 Thread mmann78
The proto_tree_add_subtree[_format] code refactoring was very intentionally post-1.12 and I don't see much point to just having the API there without it. Further refactoring of specific dissectors like SSL and DTLS probably won't be backported either, but if it is breaking a proto_tree_add_su

Re: [Wireshark-dev] Bug in expert_add_info_format with a NULL pi parameter

2014-07-18 Thread mmann78
Yes "expert info" APIs (even the deceiving proto_tree_add_expert and proto_tree_add_expert_format) need to be called independent of the presence of a tree (just like column APIs). It can sometimes be difficult to detect that expert API calls are "hidden" under an if (tree) call, -Ori

Re: [Wireshark-dev] O2 compile option makes it difficult to debug.

2014-07-28 Thread mmann78
+1 I was trying to hold out until the CMake stuff for Windows is complete. Since it sounds close, I thought I could just deal with merging the removal of O2 option for awhile. -Original Message- From: Anders Broman To: Developer support list for Wireshark Sent: Mon, Jul 28, 20

Re: [Wireshark-dev] [Wireshark-commits] master 31ecdf5: Refactor "common" Conversation table functionality.

2014-07-28 Thread mmann78
I think a lot of similar refactoring can be done in the area of "statistics taps". The GUI layer for many of them is (or should be) fairly thin, mostly separated by number and types of columns. By using epan (and ui) directory as a "middle layer", we can achieve more standard usage of "stati

Re: [Wireshark-dev] switching to proto_tree_add_subtree()

2014-07-30 Thread mmann78
proto_tree_add_subtree should be proto_tree_add_text + proto_item_add_subtree (where the return value of proto_tree_add_text is input to proto_item_add_subtree). When I originally created proto_tree_add_subtree, I thought it would be "more optimized" to include the function body of proto_tre

Re: [Wireshark-dev] Petri-Dish +1 gives an error: needs code review

2014-08-15 Thread mmann78
I thought we intentionally wanted a (core?) developer to bless the patch (with +1) before we sent it to the Petri-Dish. No sense in testing for compile errors if someone doesn't at least like the idea of the patch. This may dilute the meaning of +1 review a little, but we also didn't necessa

  1   2   3   >