Re: [Wireshark-dev] [PATCH] dissectors warnings fix

2007-03-23 Thread Stephen Fisher
On Sat, Mar 24, 2007 at 01:05:41AM +0100, Sebastien Tandel wrote: > patch fixing warnings for the following dissectors : > packet-3ga11.c > packet-aim-buddylist.c > packet-aim-chat.c > packet-aim-messaging.c > packet-aim-signon.c > packet-ajp13.c Committed as revision 2116

Re: [Wireshark-dev] Patches for compilation warnings

2007-03-23 Thread Ulf Lamping
Peter Johansson wrote: > Hi! > > Ulf Lamping wanted help with getting rid of compiler warnings and I > agree. Its hard to see newly introduced warnings among all the other > ones. Hence here is a list of patches to address some of them on a > Windows build. > > Note though that for packet-sc

Re: [Wireshark-dev] Compilation failure on MSVC 6.0 with Platform SDK

2007-03-23 Thread Ulf Lamping
Graham Bloice wrote: > When compiling with MSVC 6.0 and the platform SDK, there are failures > due to the redefinition of sockaddr_storage in capture_wpcap_packet.c > and gtk/capture_if_details_dlg.c. > > The definition is conditional on the version of MSVC used, whereas the > actual definition dep

Re: [Wireshark-dev] [Wireshark-commits] rev 21160: /trunk/ /trunk/epan/dissectors/: packet-ssl-utils.h /trunk/gtk/: Makefile.am find_dlg.c follow_dlg.c graph_analysis.c io_stat.c proto_draw.c recent.c

2007-03-23 Thread Stephen Fisher
On Sat, Mar 24, 2007 at 02:33:34AM +0100, Ulf Lamping wrote: > I'm getting the following error on MSVC 8 now: > > dissectors.lib(packet-dtls.obj) : error LNK2005: > _ssl_version_short_names already defined in dissect > ors.lib(packet-ssl.obj) > dissectors.lib(packet-ssl-utils.obj) : error LNK2005

Re: [Wireshark-dev] [Wireshark-commits] rev 21160: /trunk/ /trunk/epan/dissectors/: packet-ssl-utils.h /trunk/gtk/: Makefile.am find_dlg.c follow_dlg.c graph_analysis.c io_stat.c proto_draw.c recent.c

2007-03-23 Thread Ulf Lamping
[EMAIL PROTECTED] wrote: > http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=21160 > > User: sfisher > Date: 2007/03/24 12:45 AM > > Log: > Remove all warnings under Unix for the gtk/ directory. > > Directory: /trunk/epan/dissectors/ > ChangesPath Action > +

[Wireshark-dev] [PATCH] dissectors warnings fix

2007-03-23 Thread Sebastien Tandel
patch fixing warnings for the following dissectors : packet-3ga11.c packet-aim-buddylist.c packet-aim-chat.c packet-aim-messaging.c packet-aim-signon.c packet-ajp13.c 3ga11-aim-ajp13-warnings-fix.diff.gz Description: application/gzip _

Re: [Wireshark-dev] [PATCH] ASN1 plugins warnings fixes

2007-03-23 Thread Stephen Fisher
On Sat, Mar 24, 2007 at 12:22:39AM +0100, Sebastien Tandel wrote: >fixes gcc warnings and get rid of declaration after statements Committed as SVN revision 21159. Thanks for your help! Steve ___ Wireshark-dev mailing list Wireshark-dev@wireshark

[Wireshark-dev] [PATCH] ASN1 plugins warnings fixes

2007-03-23 Thread Sebastien Tandel
Hi, fixes gcc warnings and get rid of declaration after statements Regards, Sebastien Tandel plugin-asn1.diff.gz Description: application/gzip ___ Wireshark-dev mailing list Wireshark-dev@wireshark.org http://www.wireshark.org/mailman/listinfo/w

Re: [Wireshark-dev] ASN1 warning question

2007-03-23 Thread Sebastien Tandel
> The only problem seems to be that it is a guchar and > the 6th argument to proto_tree_add_string_format() expects a char. > Which parameter do you mean putting strlen(octets) in? > Right. I don't know why I've seen it as the length parameter. Regards, Sebastien Tandel __

Re: [Wireshark-dev] ASN1 warning question

2007-03-23 Thread Stephen Fisher
On Fri, Mar 23, 2007 at 10:04:52PM +0100, Sebastien Tandel wrote: > I can't really decide on 6 warnings similar. Take a look at one of > them : > The 6th parameters (octets) of proto_tree_add_string_format is the > guchar array we have converted with showoctets. Is it correct? Don't > we have

Re: [Wireshark-dev] AMQP dissector - the code to review

2007-03-23 Thread ronnie sahlberg
Hi, 1, can you move the hf and ett arrays as well as the proto_register_... and proto_reg_handoff_... to the end of the file instead of the begining to be more consistent with other dissectors. 2, remove the amqp_module variable since it is not yet used. also remove the if(proto_amqp) { conditio

[Wireshark-dev] ASN1 warning question

2007-03-23 Thread Sebastien Tandel
Hi, I can't really decide on 6 warnings similar. Take a look at one of them : guchar * octets; const char * ename; ... ename = showoctets(octets, len, (tag == BER_UNI_TAG_OCTETSTRING) ? 4 : 0); ... proto_tree_add_string_format(pt, props.value_id, tvb, boffset,

Re: [Wireshark-dev] [PATCH] bad RVALS declaration

2007-03-23 Thread Stephen Fisher
Committed as SVN revision 21157. Thanks! On Thu, Mar 22, 2007 at 06:24:17PM +0100, Sebastien Tandel wrote: > what a shame, even the comment was copy pasted :-p > > patch with accurate comment and declaration. > > > Regards, > Sebastien Tandel > > Sebastien Tandel wrote: > > copy paste hit aga

Re: [Wireshark-dev] [PATCHES] Please review?

2007-03-23 Thread Sake Blok
On Fri, Mar 23, 2007 at 11:09:51AM -0700, Stephen Fisher wrote: > On Thu, Mar 22, 2007 at 08:53:25PM +0100, Sake Blok wrote: > > > Could the patches I submitted to bugzilla be reviewed? I think they > > were overlooked because I did not put "[PATCH]" in the subject-lines > > of the mails I sent

Re: [Wireshark-dev] [PATCH] unused variables

2007-03-23 Thread Stephen Fisher
On Thu, Mar 22, 2007 at 04:31:23PM +0100, Sebastien Tandel wrote: > stripped away some unused variables/parameters > + in prefs.c > suggestion of parentheses makes gcc happy Committed as SVN revision 21156. Thanks! Steve ___ Wireshark-dev mailin

Re: [Wireshark-dev] Packet Generator ??

2007-03-23 Thread Ulf Lamping
There is a list at: http://wiki.wireshark.org/Tools, but don't ask me about them (I've never used them myself) ... Regards, ULFL > -Ursprüngliche Nachricht- > Von: Developer support list for Wireshark > Gesendet: 23.03.07 19:25:47 > An: "Developer support list for Wireshark" > Betreff

Re: [Wireshark-dev] [PATCH] ./configure --with-warnings-as-errors

2007-03-23 Thread Sebastien Tandel
Then there are others in the list : bad RVALS declaration unused variables strict aliasing warning fix Regards, Sebastien Tandel Stephen Fisher wrote: > On Fri, Mar 23, 2007 at 07:04:38PM +0100, Sebastien Tandel wrote: > > >> I've posted a patch (subject : Plugins Warnings) for fix

Re: [Wireshark-dev] [PATCH] Plugins Warnings

2007-03-23 Thread Sebastien Tandel
Stephen Fisher wrote: > On Fri, Mar 23, 2007 at 05:33:41PM +0100, Sebastien Tandel wrote: > > >> First patch fixes warning of profinet and megaco plugins to compile >> again with gcc-4.1.2. >> > > Committed as SVN revision 21155. Thanks for your help! > > >> asn1 plugin is generating w

Re: [Wireshark-dev] [PATCH] ./configure --with-warnings-as-errors

2007-03-23 Thread Stephen Fisher
On Fri, Mar 23, 2007 at 07:04:38PM +0100, Sebastien Tandel wrote: > I've posted a patch (subject : Plugins Warnings) for fixing warnings > in profinet and megaco. If you won't integrate it, please say it that > I stop loosing my time. I just committed it; your help is greatly appreciated! Ste

Re: [Wireshark-dev] [PATCH] Plugins Warnings

2007-03-23 Thread Stephen Fisher
On Fri, Mar 23, 2007 at 05:33:41PM +0100, Sebastien Tandel wrote: > First patch fixes warning of profinet and megaco plugins to compile > again with gcc-4.1.2. Committed as SVN revision 21155. Thanks for your help! > asn1 plugin is generating warnings. I'm correcting them now. I have > nevert

Re: [Wireshark-dev] Packet Generator ??

2007-03-23 Thread Steven Le
Win32 On 3/23/07, Steven Le <[EMAIL PROTECTED]> wrote: Are there packet generators around to test my codes? Steven ___ Wireshark-dev mailing list Wireshark-dev@wireshark.org http://www.wireshark.org/mailman/listinfo/wireshark-dev

[Wireshark-dev] Packet Generator ??

2007-03-23 Thread Steven Le
Are there packet generators around to test my codes? Steven ___ Wireshark-dev mailing list Wireshark-dev@wireshark.org http://www.wireshark.org/mailman/listinfo/wireshark-dev

Re: [Wireshark-dev] [PATCHES] Please review?

2007-03-23 Thread Stephen Fisher
On Thu, Mar 22, 2007 at 08:53:25PM +0100, Sake Blok wrote: > Could the patches I submitted to bugzilla be reviewed? I think they > were overlooked because I did not put "[PATCH]" in the subject-lines > of the mails I sent to this list. > > The patches are listed under the following bugs: > > *

Re: [Wireshark-dev] Bug 491 : time delta behaviour

2007-03-23 Thread Stephen Fisher
On Fri, Mar 23, 2007 at 07:34:23AM +0100, Sake Blok wrote: > It turns out that the recent hunt for warnings resulted also in a few > casts in column-utils.c. I incorporated these casts in my patch so it > should now be able to load the patch against the latest SVN (21147). > > Could you give it

Re: [Wireshark-dev] [PATCH] ./configure --with-warnings-as-errors

2007-03-23 Thread Sebastien Tandel
I've posted a patch (subject : Plugins Warnings) for fixing warnings in profinet and megaco. If you won't integrate it, please say it that I stop loosing my time. Regards, Sebastien Tandel Stephen Fisher wrote: > On Fri, Mar 23, 2007 at 05:32:12PM +0100, Sebastien Tandel wrote: > > >>Patch

Re: [Wireshark-dev] [PATCH] ./configure --with-warnings-as-errors

2007-03-23 Thread Stephen Fisher
On Fri, Mar 23, 2007 at 05:32:12PM +0100, Sebastien Tandel wrote: >Patch for configure.in which disables by default the treatment of > warnings as errors. It can be enabled with './configure > --with-warnings-as-errors'. The macro will test first if GCC is > present. If it's the case, HAVE_

[Wireshark-dev] [PATCH] Plugins Warnings

2007-03-23 Thread Sebastien Tandel
Hi, First patch fixes warning of profinet and megaco plugins to compile again with gcc-4.1.2. asn1 plugin is generating warnings. I'm correcting them now. I have nevertheless a question. offset in asn1_close and asn1_open is declared as int but never used as such in packet-asn1.c Could it be chan

[Wireshark-dev] [PATCH] ./configure --with-warnings-as-errors

2007-03-23 Thread Sebastien Tandel
Hi, Patch for configure.in which disables by default the treatment of warnings as errors. It can be enabled with './configure --with-warnings-as-errors'. The macro will test first if GCC is present. If it's the case, HAVE_WARNINGS_AS_ERRORS is defined. All the USING_GCC have been replaced by H

Re: [Wireshark-dev] Buildbot compile flags

2007-03-23 Thread Joerg Mayer
On Thu, Mar 22, 2007 at 08:01:50PM -0700, Stephen Fisher wrote: > On Thu, Mar 22, 2007 at 07:47:35PM -0700, Guy Harris wrote: > The alternative is to compile with -std=c99 for the long long case, but > do we really want to do that? I agree that -pedantic is a bit too much > to tackle, at least f

[Wireshark-dev] Compilation failure on MSVC 6.0 with Platform SDK

2007-03-23 Thread Graham Bloice
When compiling with MSVC 6.0 and the platform SDK, there are failures due to the redefinition of sockaddr_storage in capture_wpcap_packet.c and gtk/capture_if_details_dlg.c. The definition is conditional on the version of MSVC used, whereas the actual definition depends on the version of winsock d

Re: [Wireshark-dev] Prevent compiler warnings by using "stop on warnings"/"treat warnings as errors" compiler option?

2007-03-23 Thread Joerg Mayer
On Thu, Mar 22, 2007 at 04:08:36PM -0700, Stephen Fisher wrote: > > On Wed, Mar 21, 2007 at 05:46:50PM -0700, Stephen Fisher wrote: > > > > I've found a way around this issue and have introduced it into the > > same places in my tree on Unix as Ulf has on Windows so far. It's a > > variable se

Re: [Wireshark-dev] Looking for a definition document matching a dissector/plugin.

2007-03-23 Thread John
Luis Ontanon wrote: >Simple dissector: > packet-udp.[ch] implements RFC 768 > >Somewhat complex dissector: > packet-sctp.[ch] implements RFC 2960 and others > >Very complex dissector: > packet-xml.[ch] impelements (parts of) http://www.w3.org/XML/ > >as a rule of thumb most dissectors can be f