Re: [Wireshark-dev] use tshark as part of one application

2010-03-11 Thread yassine antir
yes i mean it is linked against ringbuffer.o i am trying to use const gchar *ringbuf_current_filename(void); which generates link problem undefined reference > Date: Thu, 11 Mar 2010 17:19:20 -0500 > From: jeff.morriss...@gmail.com > To: wireshark-dev@wireshark.org > Subject: Re: [Wireshark-dev]

Re: [Wireshark-dev] Custom formatter for 64bit field

2010-03-11 Thread Maynard, Chris
I think the problem is that the custom format function takes a guint32 as its 2nd argument and you need a guint64, so unless this is changed to a guint64, you will have to modify your declaration to some other BASE_ supported by FT_UINT64 and then use one of the other proto_tree_add_XYZ() routin

Re: [Wireshark-dev] use tshark as part of one application

2010-03-11 Thread Jeff Morriss
Eloy Paris wrote: > Hi Jeff, > > On 03/11/2010 05:19 PM, Jeff Morriss wrote: > > [...] > >> libwireshark is NOT thread safe. If you're using multiple threads, >> you'd need one lock to prevent more than one thread from entering >> libwireshark simultaneously. > > Indeed. I personally found tha

Re: [Wireshark-dev] use tshark as part of one application

2010-03-11 Thread Eloy Paris
Hi Jeff, On 03/11/2010 05:19 PM, Jeff Morriss wrote: [...] > libwireshark is NOT thread safe. If you're using multiple threads, > you'd need one lock to prevent more than one thread from entering > libwireshark simultaneously. Indeed. I personally found that out while integrating libwireshark

Re: [Wireshark-dev] Custom formatter for 64bit field

2010-03-11 Thread Guy Harris
On Mar 11, 2010, at 2:24 PM, David Arnold wrote: > I'm writing a dissector for a protocol that uses a 64-bit time field > which is not in the format required for FT_ABSOLUTE_TIME. What do you mean by "the format required for FT_ABSOLUTE_TIME"? An FT_ABSOLUTE_TIME field doesn't have to be in th

[Wireshark-dev] Custom formatter for 64bit field

2010-03-11 Thread David Arnold
Hi! I'm writing a dissector for a protocol that uses a 64-bit time field which is not in the format required for FT_ABSOLUTE_TIME. So, I declared the hfinfo like { &hf_prot_pkthdr_time, { "Transmit Time", "prot.time", FT_UINT64, BASE_CUSTOM, prot_fmt_tim

Re: [Wireshark-dev] How do I call the pkcs1 dissection from another dissector?

2010-03-11 Thread Jeff Morriss
Kaul wrote: > find_dissector("pkcs-1") doesn't seem to be the correct way to do it. > How do I do it? > There's a PKCS1 blob I want the PKCS#1 dissector to dissect. How do I > call it? I can create a TVB for it, of course. You'd need that dissector to be registered by name (by calling register_

Re: [Wireshark-dev] use tshark as part of one application

2010-03-11 Thread Jeff Morriss
yassine antir wrote: > Hi, > > i am working in one application where am using tshark. i have two issues > to fix: > > 1) i am using the tshark code on my application so we can say in other > words thark is the listening part of the application > the application is multithreading one where multi

[Wireshark-dev] buildbot failure in Wireshark (development) on Ubuntu-9.10-x64

2010-03-11 Thread buildbot-no-reply
The Buildbot has detected a new failure of Ubuntu-9.10-x64 on Wireshark (development). Full details are available at: http://buildbot.wireshark.org/trunk/builders/Ubuntu-9.10-x64/builds/283 Buildbot URL: http://buildbot.wireshark.org/trunk/ Buildslave for this Build: ubuntu-9.10-x64 Build Reas

[Wireshark-dev] buildbot failure in Wireshark (development) on OSX-10.5-PowerPC

2010-03-11 Thread buildbot-no-reply
The Buildbot has detected a new failure of OSX-10.5-PowerPC on Wireshark (development). Full details are available at: http://buildbot.wireshark.org/trunk/builders/OSX-10.5-PowerPC/builds/1292 Buildbot URL: http://buildbot.wireshark.org/trunk/ Buildslave for this Build: osx-10.5-ppc Build Reas

[Wireshark-dev] Help with packet statistics

2010-03-11 Thread Aniruddha A
Hello, I added a tap interface and statistics for my protocol, I see that the main packet count is working fine but when I try to fetch the sub-type statistics, somewhere the Total is wrong, i.e, my output shows: Total Packets 36 Foo Packet Types36 Message Type-1 26

[Wireshark-dev] buildbot failure in Wireshark (development) on OSX-10.5-x86

2010-03-11 Thread buildbot-no-reply
The Buildbot has detected a new failure of OSX-10.5-x86 on Wireshark (development). Full details are available at: http://buildbot.wireshark.org/trunk/builders/OSX-10.5-x86/builds/1623 Buildbot URL: http://buildbot.wireshark.org/trunk/ Buildslave for this Build: osx-10.5-x86 Build Reason: Bui

[Wireshark-dev] use tshark as part of one application

2010-03-11 Thread yassine antir
Hi, i am working in one application where am using tshark. i have two issues to fix: 1) i am using the tshark code on my application so we can say in other words thark is the listening part of the application the application is multithreading one where multiple threads share the libwireshark l

[Wireshark-dev] buildbot failure in Wireshark (development) on Windows-7-x64

2010-03-11 Thread buildbot-no-reply
The Buildbot has detected a new failure of Windows-7-x64 on Wireshark (development). Full details are available at: http://buildbot.wireshark.org/trunk/builders/Windows-7-x64/builds/483 Buildbot URL: http://buildbot.wireshark.org/trunk/ Buildslave for this Build: windows-7-x64 Build Reason: B