Re: [Wireshark-dev] Text2pcap and bidirectional traffic

2008-07-22 Thread Barnes, Pat
Thank you, I was not aware of that approach. Unfortunately it won't work for my case - the dissector needs to examine IP addresses and port numbers, and it does so heuristically. I'll consider opening an enhancement report when I have finished writing the test data. Cheers, Patrick -Origina

Re: [Wireshark-dev] Text2pcap and bidirectional traffic

2008-07-22 Thread Maynard, Chris
I haven't had the time to look into this tool yet, although I hope to one day, but the network expect tool that Eloy Paris wrote and maintains might be useful to you: http://www.netexpect.org. http://www.wireshark.org/lists/wireshark-dev/200805/msg00145.html -Original Message- From: [EMA

[Wireshark-dev] sudhanshu gautam wants to chat

2008-07-22 Thread sudhanshu gautam
I've been using Google Talk and thought you might like to try it out. We can use it to call each other for free over the internet. Here's an invitation to download Google Talk. Give it a try! --- sudhanshu gautam wants to stay in

[Wireshark-dev] wireshark to sql

2008-07-22 Thread Saeed Akhtar
Hi, I am trying to dump information retrieved from wireshark to sql. is there any option in wireshark or is it already done by someone. ___ Wireshark-dev mailing list Wireshark-dev@wireshark.org https://wireshark.org/mailman/listinfo/wireshark-dev

Re: [Wireshark-dev] wireshark to sql

2008-07-22 Thread Abhik Sarkar
Hi Saeed, This has been discussed before... http://www.wireshark.org/lists/wireshark-dev/200708/msg00041.html You can search the wireshark mailing list archives to see if there are more discussions. HTH Abhik. On Tue, Jul 22, 2008 at 4:49 PM, Saeed Akhtar <[EMAIL PROTECTED]> wrote: > Hi, > I

[Wireshark-dev] Accessing SCTP data chunk length etc

2008-07-22 Thread Gastermann, Bernd Christian
Dear Wireshark team! I am currently writing a wireshark plugin which dissects custom data chunks from within a sctp message. Unfortunately, in order to work properly, it is necessary to know how long this specific sctp data chunk is. I've tried several things (for example writing another sctp plu

[Wireshark-dev] Decoding an incoming message into an array

2008-07-22 Thread Sachin Kumar Verma
Hi All, Can anyone please provide me a sample code to dissect an incoming message into a structure that also contains an array? For e.g. if the target structure is: struct sample_struct { int param1; int param2[10]; }; Then please suggest me the appropriate way to dissect

Re: [Wireshark-dev] Accessing SCTP data chunk length etc

2008-07-22 Thread Luis EG Ontanon
the information about the length of the transported pdu is passed via the tvb. take a look at tvbuff.h On Mon, Jul 21, 2008 at 3:20 PM, Gastermann, Bernd Christian <[EMAIL PROTECTED]> wrote: > Dear Wireshark team! > > I am currently writing a wireshark plugin which dissects custom data chunks >

Re: [Wireshark-dev] Accessing SCTP data chunk length etc

2008-07-22 Thread Michael Tüxen
Hi Bernd, you can get the length of the user message from the length of the tvb. So why do you need the stream identifier for your dissection. If you have multiple upper layers, your protocol should used separate payload protocol identifiers. You can register your dissector for particular PPID

Re: [Wireshark-dev] Accessing SCTP data chunk length etc

2008-07-22 Thread Guy Harris
On Jul 22, 2008, at 9:02 AM, Luis EG Ontanon wrote: > the information about the length of the transported pdu is passed > via the tvb. > > take a look at tvbuff.h ...and at tvb_reported_length(), in particular. (tvb_length() tells you the amount of captured data, which could be less than th

Re: [Wireshark-dev] [Wireshark-commits] rev 25794: /trunk/epan/dissectors/ /trunk/epan/dissectors/: packet-gsm_a.c

2008-07-22 Thread Jeff Morriss
Are you automatically finding these? How? I was wondering about finding a way to do it... [EMAIL PROTECTED] wrote: > http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=25794 > > User: wmeier > Date: 2008/07/22 11:36 AM > > Log: > Add NULL termination element to value_string ar

Re: [Wireshark-dev] [Wireshark-commits] rev 25794: /trunk/epan/dissectors/ /trunk/epan/dissectors/: packet-gsm_a.c

2008-07-22 Thread Bill Meier
Jeff Morriss wrote: > Are you automatically finding these? How? I was wondering about > finding a way to do it... > Yep: A little bit of regex'ing in checkAPIs.pl seems to work OK for the way most value_string arrays are defined in Wireshark code. The current code finds and checks the cases

Re: [Wireshark-dev] [Wireshark-commits] rev 25794: /trunk/epan/dissectors/ /trunk/epan/dissectors/: packet-gsm_a.c

2008-07-22 Thread Jeff Morriss
Bill Meier wrote: > Jeff Morriss wrote: >> Are you automatically finding these? How? I was wondering about >> finding a way to do it... >> > > Yep: A little bit of regex'ing in checkAPIs.pl seems to work OK for the > way most value_string arrays are defined in Wireshark code. > > The curre

[Wireshark-dev] Dissector Registration Query

2008-07-22 Thread Kumar, Hemant
Hello All I just wanted to know whether we can register our plugin dissector with Multiple protocols. Basically my dissector should be able to dissect both UDP and TCP packet payload. I am implementing it as a Heuristic dissector by :-- heur_dissector_add("tcp", dissect_mprotocol, proto_mypro

[Wireshark-dev] buildbot failure in Wireshark (development) on Windows-XP-x86

2008-07-22 Thread buildbot-no-reply
The Buildbot has detected a new failure of Windows-XP-x86 on Wireshark (development). Full details are available at: http://buildbot.wireshark.org/trunk/builders/Windows-XP-x86/builds/4590 Buildbot URL: http://buildbot.wireshark.org/trunk/ Buildslave for this Build: windows-xp-x86 Build Reason

Re: [Wireshark-dev] Dissector Registration Query

2008-07-22 Thread Jaap Keuter
Hi, What about this dissect_my_protocol(, gboolean tcp) { } dissect_my_protocol_tcp() { dissect_my_protocol(., TRUE); } dissect_my_protocol_udp() { dissect_my_protocol(., FALSE); } heur_dissector_add("tcp", dissect_my_protocol_tcp, pr

Re: [Wireshark-dev] Decoding an incoming message into an array

2008-07-22 Thread Abhik Sarkar
Hi Sachin, I don't think there is any function to fetch an array from the tvb. _In theory_, if you knew that there are exactly 10 integers in param2 you could do a memcpy from the tvb... but that would be just wrong because the byte-order might get messed up on different platforms. So, it is proba