Re: [Wireshark-dev] question about RTP Streams - [ SPAM - Bayesian] Bayesian Filter detected spam

2006-09-07 Thread Miha Jemec
> " looking at the > packets you could see a delay of 100ms, which is long but > acceptable"where in the RTP Streams window you look at the > delay? The only parameters I see are: > * Src IP addr,Src port,Dest IP addr,Dest > port,SSRC,Payload,Packets,Lost,Max Delta (ms),Max Jitte

Re: [Wireshark-dev] A plugin dissector and fragmented messages

2006-09-07 Thread Still Life
ronnie sahlberg wrote: > Why did they implement a hard realtime application using TCP? > This what UDP is for. [...] What you said is right, in this case, if I understood well, TCP is not used for streams but only for control messages... Some suggestion about the dissection? -- Email.it, th

Re: [Wireshark-dev] Portability issue of capture files.

2006-09-07 Thread Andreas Fink
Most frequently that's due to using FTP and not setting binary mode.Does the file's checksum change from machine to machine after copying it?no.  iIuse scp to copy from machine to machine.The PCAP/Wiretap library is supposed to figure out the endianism of thehost where the file was generated automa

Re: [Wireshark-dev] Portability issue of capture files.

2006-09-07 Thread Jeff Morriss
Andreas Fink wrote: >>> >>> Most frequently that's due to using FTP and not setting binary mode. >>> Does the file's checksum change from machine to machine after copying it? > > no. iIuse scp to copy from machine to machine. Well, you know, had to ask. Just in case... :-) >> The issue here

Re: [Wireshark-dev] query regarding gtp_handlefuntionanddecoderfunction.

2006-09-07 Thread prashanth joshi
Hi Anders, thanks. But, as u know i've been trying to write a deceder function So it goes something like this: My_decoder_fun(..) { proto_tree  *my_tree; proto_item  *te;     te = proto_tree_add_text(tree, tvb, offset, 1, val_to_str(MY_EXT_VAL, gtp_val, "Unknown message")

Re: [Wireshark-dev] Portability issue of capture files.

2006-09-07 Thread Guy Harris
LEGO wrote: > I just tried to open some files with my intel > based minimac and they do not work... Where were the capture files created, and what application wrote them? > oddly enough capture works only > if you are seeing packets in real-time, if instead you try to capture > without it fails

Re: [Wireshark-dev] Portability issue of capture files.

2006-09-07 Thread Guy Harris
Andreas Fink wrote: > I'm capturing data on a linux machine (fedora5) with tcpdump -s0 > -wdumpfile.cap. Transfer the file to the mac and try to open it with > wireshark. I get weird errors saying it couldnt open it because packet > size is bigger than 65k or something like that. Same is if I c

Re: [Wireshark-dev] A plugin dissector and fragmented messages

2006-09-07 Thread Still Life
> Check out doc/README.developer chapter 2.7 Reassembly/desegmentation for > protocols running atop TCP. > Thanx, > Jaap Thank you Jaap! I resolved my problem with the second method exposed in chapter 2.7. Now things seems to work. Cheers -- Email.it, the professional e-mail, gratis per te:

Re: [Wireshark-dev] tcp_dissect_pdus

2006-09-07 Thread Guy Harris
John R. wrote: > I have an issue with desegmentation of packets: if the minimal header > required to judge length is broken across TCP segments A and B, at > segment A it decides properly to return expecting the remainder of the > minimal header. In my problem case, the next tcp segment to arrive h

Re: [Wireshark-dev] query regarding gtp_handlefuntionanddecoderfunction.

2006-09-07 Thread ronnie sahlberg
you MUST use a hf_ field as the second parameter. you can NOT use NULL since 1, NULL is not an integer and is therefore the WRONG type for the second parameter and would anyway give you a compiler error if you tried. 2, there are plenty of examples on how to use hf_fields in the code. please rea

Re: [Wireshark-dev] display filter on a field that appears more than once in a message

2006-09-07 Thread Guy Harris
ronnie sahlberg wrote: > The difference is the difference between the upside down A (==For ALL it > is true) > and the mirrored E (==there EXISTS at least one) I.e.: payload.packet.a_field != 1 means "there exists at least one instance of payload.packet.a_field in the packet that has a

Re: [Wireshark-dev] display filter on a field that appears more than once in a message

2006-09-07 Thread Andrew Schweitzer
Guy Harris wrote: > ronnie sahlberg wrote: > >>The difference is the difference between the upside down A (==For ALL it >>is true) >>and the mirrored E (==there EXISTS at least one) > > > I.e.: > > payload.packet.a_field != 1 > > means "there exists at least one instance of payload.pack

Re: [Wireshark-dev] Portability issue of capture files.

2006-09-07 Thread LEGO
Found! there's libz.1.2.3 in both /usr/lib and /opt/local/lib as soon as I removed that in /opt/local/lib I solved the issue... diferent library same mis-bahaviour as I used to have with open-ssl "Solved" by [pociccio:~/src/trunk] lego% sudo mv /opt/local/lib/libz.1.2.3.dylib /opt/local/lib/=libz

[Wireshark-dev] Win32 build error return code 0x66666666

2006-09-07 Thread VOCAL Technologies, LTD
Thank you Tim, I reinstalled Cygwin tools, and I was able to compile, but am now unable to link. I checked my path to make sure I am using the MSVC linker, and I get this error: ftype-ipv4.c(108) : error C2065: 'fvalue_t_free_list' : undeclared identifier I am working on tracking this bug down,

Re: [Wireshark-dev] Portability issue of capture files.

2006-09-07 Thread Andreas Fink
Oh thats interesting. I think my wireshark was built with the source of libz as well but really what whould have been needed was a export LDFLAGS -lz for most of the tools. I'm rebuilding it currently on a new MacPro. Will report if that fixes it too. On 07.09.2006, at 13:57, LEGO wrote: >

Re: [Wireshark-dev] Win32 build error return code 0x66666666

2006-09-07 Thread Cook, Timothy
What are you using as source (e.g. SVN tip or source distribution 0.99.3)? I usually build from SVN tip. However, I haven't applied updates for couple months. Maybe I'll have time to update & do a clean build. -Tim > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTE

[Wireshark-dev] Win32 build error return code 0x66666666

2006-09-07 Thread VOCAL Technologies, LTD
I am building from the source distrobution 0.99.3 ___ Wireshark-dev mailing list Wireshark-dev@wireshark.org http://www.wireshark.org/mailman/listinfo/wireshark-dev

[Wireshark-dev] ESP Patch for Hexadecimal keys

2006-09-07 Thread Frédéric Roudaut
Hi, as requested here is a patch in order to take into account Encryption and Authentication keys for ESP in hexa. You only have to write your key with 0x first. In this case if the key is not in 8-bit unit, it will be considered as starting with a "0" (4 bits). Excepted this case, the key

[Wireshark-dev] [Patch] epan/make-sminmpec.pl

2006-09-07 Thread Andrew Feren
This adds some features to update enterprise-numbers from the web. After I submitted a large update for epan/enterprise-numbers yesterday I got to thinking that there ought to be a way to automate keeping the file up to date. As used in the Makefile currently make-sminmpec.pl works exactly

[Wireshark-dev] Http dissector - Am I missing something?

2006-09-07 Thread Bryant Eastham
All- I have done several plugin dissectors in the past for internal protocols, all TCP- and UDP-based. I am now trying to add a plugin for a protocol that uses HTTP as the transport. Easy, I thought! Well, not so easy it appears. I am confused by the logic in packet-http.c around line 1059:

Re: [Wireshark-dev] tcp_dissect_pdus

2006-09-07 Thread John R. Hogerhuis
On Thu, 2006-09-07 at 03:22 -0700, Guy Harris wrote: > John R. wrote: > > I have an issue with desegmentation of packets: if the minimal header > > required to judge length is broken across TCP segments A and B, at > > segment A it decides properly to return expecting the remainder of the > > minim

Re: [Wireshark-dev] Http dissector - Am I missing something?

2006-09-07 Thread LEGO
XML's dissector is called as an heuristic dissector for http, can't you do like it does? Luis On 9/7/06, Bryant Eastham <[EMAIL PROTECTED]> wrote: > All- > > I have done several plugin dissectors in the past for internal > protocols, all TCP- and UDP-based. I am now trying to add a plugin for a >

Re: [Wireshark-dev] [Patch] epan/make-sminmpec.pl

2006-09-07 Thread LEGO
Committed revision 19172. I modified so that calling it like make-sminmpec.pl -gen is like calling it make-sminmpec.pl -gen \ http://www.iana.org/assignments/enterprise-numbers \ sminmpec.c Luis On 9/7/06, Andrew Feren <[EMAIL PROTECTED]> wrote: > This adds some features

Re: [Wireshark-dev] [Patch] epan/make-sminmpec.pl

2006-09-07 Thread Andrew Feren
--- LEGO <[EMAIL PROTECTED]> wrote: > Committed revision 19172. > > I modified so that calling it like >make-sminmpec.pl -gen > is like calling it >make-sminmpec.pl -gen \ > http://www.iana.org/assignments/enterprise-numbers \ > sminmpec.c If you try using this default

Re: [Wireshark-dev] win32: nmake setup: can't find cl

2006-09-07 Thread Cook, Timothy
Have you done the following: Do you intend to build using MSVC & CYGWIN tools? Was your Win32 build environment setup using the Developers Guide, sections 2.3 & 4.6.2? If you intended to use MSVC & CYGWIN tools, a command prompt [DOS prompt] is the way to go! Also ensure that you have run vcvars

[Wireshark-dev] win32: nmake setup: can't find cl

2006-09-07 Thread Jacques, Olivier \(OpenCall Test Infra\)
Hello, I re-installed my PC and I'm trying to re-setup my wireshark build environment. After a fresh svn checkout, a nmake -f makefile.nmake distclean, I can't run "nmake -f makefile.nmake setup": win32setup.sh complains about cl that can't be found: -- C:\transfer\ethereal\winbuild\ethe

Re: [Wireshark-dev] Win32 build error return code 0x66666666

2006-09-07 Thread Cook, Timothy
I just did build based on source distribution 0.99.3 (retrieved today)! I did find that the file \wireshark\airpcap.h is missing from the distribution and causes the build to fail. Before starting the first build, did you execute: "nmake -fmakefile.nmake distclean" and "nmake -fmakefile.nmake set

Re: [Wireshark-dev] Portability issue of capture files.

2006-09-07 Thread Guy Harris
LEGO wrote: > there's libz.1.2.3 in both /usr/lib and /opt/local/lib Gak. Any idea what package installed its own private libz? It probably shouldn't be doing that, unless it needs 1.2.3 or later and can't work with earlier versions. > as soon as I removed that in /opt/local/lib I solved the

Re: [Wireshark-dev] Portability issue of capture files.

2006-09-07 Thread LEGO
On 9/7/06, Guy Harris <[EMAIL PROTECTED]> wrote: > Gak. Any idea what package installed its own private libz? It probably > shouldn't be doing that, unless it needs 1.2.3 or later and can't work > with earlier versions. Darwinports does use its own dependencies for a *lot* of things even if unne

Re: [Wireshark-dev] query regarding gtp_handlefuntionanddecoderfunction.

2006-09-07 Thread prashanth joshi
Hi, My query is : How to add a string i.e. a string which is part of the gtp packet , to the tree. I feel proto_tree_add_string ( )  wont work becos: suppose packet contains an integer value, then val_to_str( ) operates on that value and then returns a string. Now proto_tree_add_string ( ) adds

[Wireshark-dev] Further HTTP woes...

2006-09-07 Thread Bryant Eastham
It appears that HTTP requests/responses that are not chunked and do not include a Content-Length cannot be decoded correctly. The following comment appears in the code: * If no content length was supplied (or if a bad content length * was supplied), the amount of data to be proce

Re: [Wireshark-dev] Further HTTP woes...

2006-09-07 Thread ronnie sahlberg
This only affects PDUs that spans multiple tcp segments.This can not be solved in the HTTP dissector but requires that the TCP dissector and the TCP reassembly code is enhanced to provide an api such as "reassemble tcp data from this segment and all the way until a RST or a FIN" TCP reassembly does

Re: [Wireshark-dev] Further HTTP woes...

2006-09-07 Thread ronnie sahlberg
"I now have the following problem. It is common for our implementation todump the headers in one segment and then dump the data in the next, withno Content-Length."Why does it send this as two segments? You have not disabled NAGLE have you?  ___ Wireshar

Re: [Wireshark-dev] Further HTTP woes...

2006-09-07 Thread Bryant Eastham
And what of the solution to pass a zero-data-length buffer to the subdissectors and use a conversation? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ronnie sahlbergSent: Thursday, September 07, 2006 5:27 PMTo: Developer support list for WiresharkSubject: Re: [Wireshark-de

Re: [Wireshark-dev] Further HTTP woes...

2006-09-07 Thread Bryant Eastham
What nagle algorithm! Did I forget to mention that we *wrote* the TCP/IP stack and that it is running on a small microprocessor? ;-) Seriously, this behavior is coming out of Tomcat Web Server/3.3.1 Final (JSP 1.1; Servlet 2.2). We do, however, have our own implementations in which nagle is not a

Re: [Wireshark-dev] tcp_dissect_pdus

2006-09-07 Thread John R.
OK, so I'm digging into desegment_tcp. What I find is that when segment B comes it looks for the most recent prior PDU which it calls msp. It calculates an offset and length for the last snippet of Segment A. The length is 4, which is the length of data at the end of Segment A. It uses this info i

Re: [Wireshark-dev] Further HTTP woes...

2006-09-07 Thread ronnie sahlberg
That would solve the problem for YOU   but would be the wrong way to solve the issue.We dont want dissectors to start implementing what is essentially tcp reassembly and tcp session tracking in the dissectors themself since this belongs in the tcp dissector   not in the application dissector. While

Re: [Wireshark-dev] Further HTTP woes...

2006-09-07 Thread ronnie sahlberg
:-)I have example captures of some x509 related protocols running atop http which show this.I will try to look into implementing this in the tcp layer this weekend. On 9/8/06, Bryant Eastham <[EMAIL PROTECTED]> wrote: What nagle algorithm! Did I forget to mention that we *wrote* the TCP/IPstack and

Re: [Wireshark-dev] Further HTTP woes...

2006-09-07 Thread Bryant Eastham
Thank you! My intent was really not to add more work to others, but to investigate how to solve the problem on my own. I appreciate your offer. Since that solution is "real", I will not spend any time on my "conversation" hack.   Thanks again, Bryant From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [Wireshark-dev] Further HTTP woes...

2006-09-07 Thread ronnie sahlberg
Check the WishList on the wiki Analysis item 5.It has been planned for quite a while but there has not yet been any real or urgent need for this.Ill try to implement this sometimes this weekend.The solution I implement will require that you have reassembly enabled. On 9/8/06, Bryant Eastham <[E

Re: [Wireshark-dev] tcp_dissect_pdus

2006-09-07 Thread ronnie sahlberg
Are you using the latest SVN ?I fixed a bug in pdu tracking/reassembly about ~2 weeks agoOn 9/8/06, John R. < [EMAIL PROTECTED]> wrote:OK, so I'm digging into desegment_tcp.What I find is that when segment B comes it looks for the most recent prior PDU which it calls msp. It calculates an offset an

[Wireshark-dev] Problem with docbook build process

2006-09-07 Thread Joerg Mayer
Hello, for some reasons not really clear to me, the build process for the documentation tries to download some files from the docbook repository: 34.327847 192.168.0.3 -> 217.237.150.115 DNS Standard query A docbook.sourceforge.net 34.391786 217.237.150.115 -> 192.168.0.3 DNS Standard quer

[Wireshark-dev] ESP Patch for Hexadecimal keys

2006-09-07 Thread Frédéric Roudaut
Hi, as requested here is a patch in order to take into account Encryption and Authentication keys for ESP in hexa. You only have to write your key with 0x first. In this case if the key is not in 8-bit unit, it will be considered as starting with a "0" (4 bits). Excepted this case, the key