[Wireshark-dev] What are nmake commands required to build dissector

2006-11-13 Thread Hal Lander
I have cut an pasted the Windows Makefile.nmake below from the developer guide. My dissector is the sample one from the guide, and I have stuck with the name foo. I think I have followed the edits in README.plugins correctly, but I am not familiar with nmake and I get lost at section 4. My que

Re: [Wireshark-dev] What are nmake commands required to builddissector

2006-11-14 Thread Hal Lander
fy the moduleinfo.h file replacing the define for >yours. You might also want to adjust the version (shows up in About): >-------- >#define PACKAGE "foo" >#define VERSION "0.0.1" > > >You can also modify

[Wireshark-dev] How do I nest dissectors

2006-11-16 Thread Hal Lander
The protocol I want to dissect ' foo' is contained within the data of a UPD packet. Normall Wireshark would display the UPD packet showing it has a length of 44 bytes and displaying its source and destination. It would also show that the UDP packet contains 36 bytes of data (which is where my pr

Re: [Wireshark-dev] How do I nest dissectors

2006-11-18 Thread Hal Lander
ction. In particular, you should read readme.DEVELOPER, readme.PLUGINS, and readme.DISSECTORS (the latter is critical). The dissectors one is long, but worth the read. -Brian Hal Lander wrote: > The protocol I want to dissect ' foo' is contained within the data of a UPD > pack

[Wireshark-dev] Should I create virtual fields for use in display filters

2006-11-26 Thread Hal Lander
I would like to give users of my dissector a quick and easy way to find any packets that have been sent which are not of the expected size. To me, as a newbie, the obvious way to do this would be to allow them to filter packets based on expected and actual packet sizes. To do that I think I ne

Re: [Wireshark-dev] Trying to add computed value

2006-12-02 Thread Hal Lander
Thanks for the solution, I had the same problem. Its probably a good idea to also put; item=proto_tree_add_uint(my_tree, hf_my_item, tvb, offset, length, my_item_value); PROTO_ITEM_SET_GENERATED(item); That way Wireshark puts square brackets round the field to show it is calculated. If you se

Re: [Wireshark-dev] Should I create virtual fields for use in display filters

2006-12-02 Thread Hal Lander
e too long as malformed, that way all packets of the wrong length can be caught with one filter? TIA Hal >From: Guy Harris <[EMAIL PROTECTED]> >Reply-To: Developer support list for Wireshark > >To: Developer support list for Wireshark >Subject: Re: [Wireshark-dev] Should I creat

[Wireshark-dev] Byte order, hf_register_info and value displayed

2006-12-04 Thread Hal Lander
In hf_register_info I declare a field to be FT_UINT16. Then I use "proto_tree_add_item" to put it on the tree. In the lower (3rd) pane Wireshark dispalys the two bytes in hex as; 24 00 In the middle (2nd) pane it displays the value of the field as 9216 when what I was wanting to see was 36. How

Re: [Wireshark-dev] Define dissector port

2007-01-15 Thread Hal Lander
Is there a way to get a dissector to run on all ports? So far I have been explicitly adding it to a specific port e.g. dissector_add("tcp.port",1234,handle); TIA Hal P.S. Guy thanks for answering an earlier post I did not reply because I have been ill, I just use 'foo' as the protocol name

Re: [Wireshark-dev] Define dissector port

2007-01-16 Thread Hal Lander
dissectors? Once a dissector is heuristic will it just look on all ports? Hal >From: Guy Harris <[EMAIL PROTECTED]> >Reply-To: Developer support list for Wireshark > >To: Developer support list for Wireshark >Subject: Re: [Wireshark-dev] Define dissector port >Date: M

Re: [Wireshark-dev] Define dissector port

2007-01-16 Thread Hal Lander
t list for Wireshark > >To: "Developer support list for Wireshark" >Subject: Re: [Wireshark-dev] Define dissector port >Date: Tue, 16 Jan 2007 17:51:11 +0200 > >Add >heur_dissector_add("udp", dissect_fring, proto_fring); > heur_dissector_add("tcp",

Re: [Wireshark-dev] Define dissector port

2007-01-21 Thread Hal Lander
; >Reply-To: Developer support list for Wireshark > >To: Developer support list for Wireshark >Subject: Re: [Wireshark-dev] Define dissector port >Date: Tue, 16 Jan 2007 20:39:19 +0100 (CET) > >Hi, > >Have a look in epan/packet.h and search for "heur". > >

Re: [Wireshark-dev] Define dissector port

2007-01-22 Thread Hal Lander
hark > >To: Developer support list for Wireshark >Subject: Re: [Wireshark-dev] Define dissector port >Date: Sun, 21 Jan 2007 10:04:53 -0800 > >Hal Lander wrote: > > > There is a function > > /* Find a dissector table by table name. */ > > extern dissect

Re: [Wireshark-dev] Define dissector port

2007-01-22 Thread Hal Lander
ther dissectors. A work around with the current release is just simply to disable the dissector of the protocols you're not interested in. This largely improves the experience with current heuristic dissectors. Thanx, Jaap On Sun, 21 Jan 2007, Hal Lander wrote: > Thanks Jaap, >

[Wireshark-dev] How can I delete a heuristic dissector

2007-01-22 Thread Hal Lander
How do I delete a heuristic dissector? I want to do this so that I can use preferences properly. I might also want to do it if another heuristic dissector is wrongly grabbing packets (not happening at the moment) that should be coming to me. The example in README.developer shows;

Re: [Wireshark-dev] How can I delete a heuristic dissector

2007-01-22 Thread Hal Lander
It's disable, not delete. And what's even >better, you can do it now! Start Wireshark, go to menu | Analyze | Enabled >Protocols. There you are presented a list of all dissectors, which you >individually can disable. Save the list and you're done. > >Thanx, >Jaap &

[Wireshark-dev] How do I initialise a boolean preference

2007-01-22 Thread Hal Lander
I start Wireshark (don't open a file or anything). My dissector's proto_reg_handoff routine is called. In the code that runs only once I initialise a variable static gboolean prefTick to TRUE, and register the preference. Before returning the variable is printed out and it is TRUE. My dissecto

Re: [Wireshark-dev] How do I initialise a boolean preference

2007-01-22 Thread Hal Lander
nce Date: Mon, 22 Jan 2007 16:39:49 +0100 (CET) Hi, Question: is our preference already in the preferences file? Then your default gets overwritten by this stored value. The default is default only when the preference is newly introduced. Thanx, Jaap On Mon, 22 Jan 2007, Hal Lander wrote: >

Re: [Wireshark-dev] How do I initialise a boolean preference

2007-01-29 Thread Hal Lander
eshark-dev] How do I initialise a boolean preference Date: Mon, 22 Jan 2007 15:23:02 -0800 On Jan 22, 2007, at 7:24 AM, Hal Lander wrote: > I start Wireshark (don't open a file or anything). > My dissector's proto_reg_handoff routine is called. > In the code that runs on

Re: [Wireshark-dev] How do I initialise a boolean preference

2007-01-29 Thread Hal Lander
To: Developer support list for Wireshark Subject: Re: [Wireshark-dev] How do I initialise a boolean preference Date: Mon, 22 Jan 2007 13:18:57 -0800 You might try checking Help->About Wireshark->Folders. Specific locations vary by platform and compile-time options. Hal Lander wrote: > I di

[Wireshark-dev] How do I get my dissector to work in the Display Filter

2007-01-30 Thread Hal Lander
My plugin heuristic dissector foo seems to work fine, except I cannot filter on it. If I type foo in the filter box the box goes pink. However if I type foo.len (one of my fields), the box goes green. If I click the 'Expression...' button I can see my protocol and all the fields I declared. I m

[Wireshark-dev] Problem with uint preference

2007-01-30 Thread Hal Lander
I registered a boolean preference and it worked. However, when I try and follow the same process with a uint it fails when I try and edit the preference and 'apply' the change. The message I get is; "The value for "xxTitle" isn't a valid number." If I comment out the call to prefs_regi

Re: [Wireshark-dev] How do I get my dissector to work in theDisplay Filter

2007-01-31 Thread Hal Lander
r support list for Wireshark >Subject: Re: [Wireshark-dev] How do I get my dissector to work in >theDisplay Filter >Date: Tue, 30 Jan 2007 12:05:57 -0800 > >On Tue, Jan 30, 2007 at 01:02:33AM -0900, Hal Lander wrote: > > > My plugin heuristic dissector foo seems to work fi

Re: [Wireshark-dev] Problem with uint preference

2007-01-31 Thread Hal Lander
Morriss <[EMAIL PROTECTED]> Reply-To: Developer support list for Wireshark To: Developer support list for Wireshark Subject: Re: [Wireshark-dev] Problem with uint preference Date: Wed, 31 Jan 2007 10:05:41 +0800 Hal Lander wrote: > I registered a boolean preference and it worked.

Re: [Wireshark-dev] Use ethereal as a proprietary protocol parser; no ethernet/IP decoding

2007-01-31 Thread Hal Lander
Hi Tom, I am just starting to learn how to use Wireshark myself (it used to be Ethereal),messing about with a protocol sent within TCP. You should probably start by downloading Wireshark and running it on your network to see what it does. It will capture and decode the TCP which it knows abo

Re: [Wireshark-dev] Use ethereal as a proprietary protocol parser; no ethernet/IP decoding

2007-01-31 Thread Hal Lander
"proprietery". However, to dissect the protocol, I think > some programming is needed, it might not be possible using > configuration only. > > Best regards, > Abhik. > > On 1/31/07, Hal Lander <[EMAIL PROTECTED]> wrote: > > Hi Tom, > > > > I am

[Wireshark-dev] What do you use to get a boolean

2007-02-12 Thread Hal Lander
Hi, There are various routines to get things like "tvb_get_stringz" and "tvb_get_ntohieee_float" What do you use to get a boolean, I have not found anything? Hal _ FREE online classifieds from Windows Live Expo – buy and sell wit

Re: [Wireshark-dev] What do you use to get a boolean

2007-02-12 Thread Hal Lander
value? Hal >From: Jeff Morriss <[EMAIL PROTECTED]> >Reply-To: Developer support list for Wireshark > >To: Developer support list for Wireshark >Subject: Re: [Wireshark-dev] What do you use to get a boolean >Date: Mon, 12 Feb 2007 21:37:30 +0800 > > > >Hal

Re: [Wireshark-dev] What do you use to get a boolean

2007-02-12 Thread Hal Lander
AIL PROTECTED]> Reply-To: Developer support list for Wireshark To: Developer support list for Wireshark Subject: Re: [Wireshark-dev] What do you use to get a boolean Date: Mon, 12 Feb 2007 22:05:09 +0800 Hal Lander wrote: > Wireshark has a field type FT_BOOLEAN. > It lets you add t

Re: [Wireshark-dev] What do you use to get a boolean

2007-02-12 Thread Hal Lander
function that returns the boolean (1 or 0) value of the flag or do I have to do the masking myself to get it? Hal From: "Hal Lander" <[EMAIL PROTECTED]> Reply-To: Developer support list for Wireshark To: wireshark-dev@wireshark.org Subject: Re: [Wireshark-dev] What do

Re: [Wireshark-dev] What do you use to get a boolean

2007-02-26 Thread Hal Lander
or Wireshark To: Developer support list for Wireshark Subject: Re: [Wireshark-dev] What do you use to get a boolean Date: Wed, 21 Feb 2007 23:25:44 -0800 On Mon, Feb 12, 2007 at 06:15:43AM -0900, Hal Lander wrote: > It does look like the value you pass to > proto_tree_add_boolean(tree, id, t