[Wireshark-dev] Start Dissection from an upper layer?

2008-06-10 Thread Guillaume Bienkowski
Hello Guys, I have successfully written a program that uses the Wireshark Lib to dissect some packets. The thing is, through the API I was given from my boss, I can only receive informations from the 3rd layer (IPv4, IPX, ... layer), which confuses the dissectors, and screws the dissection. O

Re: [Wireshark-dev] Start Dissection from an upper layer?

2008-06-10 Thread Gilbert Ramirez
How do the 2nd-layer dissectors get called normally? Because thy register themselves with Wireshark, saying that if "wtap_encap" (the wiretap encapsulation) is a certain type, then call them. for example, from packet-eth.c: dissector_add("wtap_encap", WTAP_ENCAP_ETHERNET, eth_maybefcs_hand

[Wireshark-dev] I need help

2008-06-10 Thread khurram Iqbal
Dear all, Can anybody tell me that can we change wireshark io_graph plot into -ve x-axis or in -ve y-axis? Please guide me. I am waiting for your answers. Best regards Khurram ___ Wireshark-dev mailing list Wireshark-dev@wireshark.org https

Re: [Wireshark-dev] Start Dissection from an upper layer?

2008-06-10 Thread Abhik Sarkar
Hi Guillaume, Perhaps if you can figure out how this mechanism works - http://wiki.wireshark.org/HowToDissectAnything, you could use a similar approach. You could also check wiretap/wtap.h to see if the API you have been provided can produce frames in one of the known types. HTH Abhik. On Tue, J

Re: [Wireshark-dev] Start Dissection from an upper layer?

2008-06-10 Thread Guillaume Bienkowski
Hello, I *kind of* get what you mean, but I really don't know how to do that. Let me explain what I do: I use the wireshark library to analyze the packets I send it. The main call to the library is done in my code through: epan_dissect_run(edt, &pseudo_header, FakePacket , &fdata, 0); where F

Re: [Wireshark-dev] Start Dissection from an upper layer?

2008-06-10 Thread Gilbert Ramirez
On Tue, Jun 10, 2008 at 7:27 PM, Guillaume Bienkowski <[EMAIL PROTECTED]> wrote: > > What I know is that my packet data will always contain ONLY the 2nd > layer data (Ethernet) and the encapsulated data (TCP, UDP, ...). > I think I misunderstood you. I thought your packets started at IP or IPX.

Re: [Wireshark-dev] Start Dissection from an upper layer?

2008-06-10 Thread Guillaume Bienkowski
Argh, I just poorly explained myself: I was just confused with Ethernet and IP. So I confirm, I get only "data" from the 3rd layer (IP) Actually, it will always be IP datagrams, so I don't have to bother with IPX or other fancy 3rd layer protocols). What I'd like to do now to start the dissecti

Re: [Wireshark-dev] Build Failure.Please help!!

2008-06-10 Thread Kumar, Hemant
Hi I am unable to launch wireshark.exe from C:\wireshark-1.0.0\ but able to successfully do it from C:\wireshark-1.0.0\wireshark-gtk1 Or C:\wireshark-1.0.0\wireshark-gtk2. Thanks Hemant -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Fisher Sen

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

2008-06-10 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/4440 Buildbot URL: http://buildbot.wireshark.org/trunk/ Buildslave for this Build: windows-xp-x86 Build Reason

Re: [Wireshark-dev] Start Dissection from an upper layer?

2008-06-10 Thread Eloy Paris
On Tue, Jun 10, 2008 at 04:21:52PM +0200, Guillaume Bienkowski wrote: > Argh, I just poorly explained myself: I was just confused with Ethernet > and IP. > > So I confirm, I get only "data" from the 3rd layer (IP) > Actually, it will always be IP datagrams, so I don't have to bother with > IPX

Re: [Wireshark-dev] Build Failure.Please help!!

2008-06-10 Thread Tobias Wärre
Hi I'm not fully immersed of the details of the build process, but I think (well know, but I'm a bit modest... ;) ) it has to do with dependencies. The C:\wireshark-1.0.0\ folder and all subfolders except for those created during a build (to see the effect do a 'nmake -f Makefile.nmake distclean

Re: [Wireshark-dev] SMTP: Extracting parametrs

2008-06-10 Thread goitom kahsay
Dear Steve, Thank you very much for you help. Yes, I created gtk/export_object_smtp.c ,gtk/export_object2.c, export_object2.h and packet-smtp.h similar to gtk/export_object_http.c ,gtk/export_object.c,export_object.h and packet-http.h. and it dissplays some thing unreadable characters. But i

[Wireshark-dev] DISSECTOR_ASSERT vs. expert_add_info vs. MALFORMED packets

2008-06-10 Thread david_aggeler
In order to better help the end user reading captures, I'm trying to set hints, when decoding problems arise, due to packet data. My first attempt was using DISSECTOR_ASSERT(), but this causes a 'bug in dissector'. After reading a thread the dev-archive, this is apparently by design, but about

Re: [Wireshark-dev] DISSECTOR_ASSERT vs. expert_add_info vs. MALFORMED packets

2008-06-10 Thread Jaap Keuter
Hi, The intention is to have Wireshark accept and process every network packet it gets tossed. Still it's software written by humans, so certain cases aren't handled. To cover these problems an exception mechanism was created. The DISSECTOR_ASSERT() and MALFORMED clauses are really for exceptio

[Wireshark-dev] Ged125 protocol

2008-06-10 Thread Martin Corraine (mcorrain)
Hello all, I'm trying to write the dissector for Cisco's ged125 protocol. Cisco gave this as my first project. Anyways, I need some help. I'm confused on the general process for writing the dissectors. (I have already built wireshark) I have found skeleton dissector templates and they are pretty

Re: [Wireshark-dev] DISSECTOR_ASSERT vs. expert_add_info vs. MALFORMED packets

2008-06-10 Thread Guy Harris
On Jun 10, 2008, at 1:07 PM, [EMAIL PROTECTED] wrote: > In order to better help the end user reading captures, I'm trying to > set hints, when decoding problems arise, due to packet data. > > My first attempt was using DISSECTOR_ASSERT(), but this causes a > 'bug in dissector'. After reading

Re: [Wireshark-dev] Ged125 protocol

2008-06-10 Thread Guy Harris
On Jun 10, 2008, at 2:20 PM, Martin Corraine (mcorrain) wrote: > My second question: Can I call the TCP dissector if the ged125 is > based off of TCP? "Based off of TCP" in what sense? If it runs over TCP, just as, for example, HTTP runs over TCP, the TCP dissector will call *your* dissec

Re: [Wireshark-dev] Build Failure.Please help!!

2008-06-10 Thread Bill Meier
Tobias Wärre wrote: > Hi > I'm not fully immersed of the details of the build process, but I think (well > know, but I'm a > bit modest... ;) ) it has to do with dependencies. > The C:\wireshark-1.0.0\ folder and all subfolders except > for those created during a > build (to see the effect do a

Re: [Wireshark-dev] Build Failure.Please help!!

2008-06-10 Thread Kumar, Hemant
Hi Do you mean on win32 platform, in the main directory wireshark-1.0.0, the wireshark executable which is created will not work as all the required dlls are not copies to this directory and as a result on launching it complains saying that "some dll files not found"? Its works fine from gtk d