[Wireshark-dev] Re : versioninfo error

2009-08-11 Thread yvanmmailbox-web
Hi, I don't know if you started only with the developper's guide, but I used the following link to start, and I found also a VERSIONINFO error in the code provided in this url, because in plugin.rc.in I had: PRODUCTVERSION @RC_VERSION@,0 whereas the right code is PRODUCTVERSION @RC_VERSION@ May

[Wireshark-dev] Re : Re : Plugin compatibility with Portable version

2009-06-24 Thread yvanmmailbox-web
It is possible, I encountered this problem when I was coding my plugin for WS 1.0.7. The problem is I use know 1.2.0 source code, with Mic. VC++2008EE, and when I compile I don't have any manifest file generated any more. I tried to attach the old manifest to my new plugin (the only difference is

[Wireshark-dev] Re : Plugin compatibility with Portable version

2009-06-23 Thread yvanmmailbox-web
Sure, I have another one, my main plugin afdx.dll that works. This one is necessary for bite.dll working, but I put both in the folder, like I do on my installed version, and I have the error message. That's why I need some ways to search the problem. What are the main differences between the p

[Wireshark-dev] Plugin compatibility with Portable version

2009-06-23 Thread yvanmmailbox-web
Hi list, I developed plugins that works well on standard Windows version of Wireshark (1.2.0), but one of them can't be loaded on the portable version (same version number). I have the following error: Couldn't load module F:\Softs\WiresharkPortable\App\Wireshark\plugins\1.2.0\bite.dll: `F:\Softs\

[Wireshark-dev] Re : Modifying port number for TFTP

2009-06-16 Thread yvanmmailbox-web
Hi Stig, I thought this modification (about possibility to modify TFTP port in preferences) should appear in 1.2.0 release, but I have seen it's not the case. Do you know if it will be available in a stable release, and if yes, when? Thanks Yvan De : Stig Bjø

[Wireshark-dev] Re : Re : Modifying port number for TFTP

2009-06-16 Thread yvanmmailbox-web
Hi Stig, I thought this modification should appear in 1.2.0 release, but I have seen it's not the case. Do you know if it will be available in a stable release, and if yes, when? Thanks Yvan De : Stig Bjørlykke À : Developer support list for Wireshark Env

[Wireshark-dev] File directory for preferences in Windows

2009-06-10 Thread yvanmmailbox-web
Hi list, I wish to know if it's possible to configure the directory for the preferences. I currently use an UAT and I would have the corresponding file into C:\Documents and settings\All users\Application Data\Wireshark instead of ...\my name\Application Data\Wireshark. Is it possible to do t

[Wireshark-dev] Re : Modifying port number for TFTP

2009-06-03 Thread yvanmmailbox-web
Adding a range in preferences was what I was thinking about. How can I apply this patch to WS? Thanks Stig! Yvan De : Heude Pascal À : Developer support list for Wireshark Envoyé le : Mardi, 2 Juin 2009, 23h14mn 26s Objet : Re: [Wireshark-dev] Modifying port

[Wireshark-dev] Modifying port number for TFTP

2009-06-02 Thread yvanmmailbox-web
Hi all, I need to dissect frames that use tftp protocol but not on the standard port. Is it possible to modify it without compiling the whole Wireshark or re-writing a plugin with the same code (I don't want to have a compiled-specific version of Wireshark)? Why are the port numbers of all diss

[Wireshark-dev] adding ipv4 resolution name in a plugin

2009-05-20 Thread yvanmmailbox-web
Hi, I wish to know if it's possible to add ipv4 names in a plugin with the function add_ipv4_name(). Even adding the addr_resolv.h in the list of included headers, I obtain an error at linking (extern symbol unresolved _add_ipv4_name in function ...). I suppose it's because it's not a standard

[Wireshark-dev] Adding a trailer

2009-05-12 Thread yvanmmailbox-web
Hi all, I wish to know how to add a trailer in my dissector (plugin called by ethernet heuristic). Actually, I'm able to detect the trailer (presence, length and offset), to add it as part of the tree, but it doesn't appear as selected when I click on my protocol name in the WS tree (different fro

[Wireshark-dev] Re : Ethernet trailer

2009-05-05 Thread yvanmmailbox-web
Actually, I have "Ethernet type II style frames", but if I disable my plugin, I can see that ETH dissector find a trailer, without having a length in type/length field. Moreover, I know that in my frames, the padding is added by the ethernet layer, so I should dissect the trailer at the ethernet

[Wireshark-dev] Ethernet trailer

2009-05-05 Thread yvanmmailbox-web
Hi all, I'm defining a heuristic dissector for Ethernet, and I wish to add a trailer which contains a fixed part (the last byte) and a padding part (between 0 and 16 bytes) - I know there is also a 4-bytes CRC but it's not transmitted in tvb so for me it's like if there isn't any. I don't under

[Wireshark-dev] Re : Tr : Dissector preferences reuse : solution

2009-04-28 Thread yvanmmailbox-web
Hi, I wish to answer myself because I found the solution. Thanks to Jeff for the idea of sharing only the variable in the preferences. I give here what I did, hoping it can be useful for somebody (maybe it can be put in a README or somewhere else). It was tested with MSVC++2008EE, with the two

[Wireshark-dev] Re : Tr : Dissector preferences reuse

2009-04-27 Thread yvanmmailbox-web
Hi, thanks for this help, Jeff, sharing variable is a good idea. I tried with a range_t used for user-defined udp ports like that: in packet-plugin1.h: extern range_t *bite_udp_range; in packet-plugin1.c: #include "packet-plugin1.h" ... range_t *bite_udp_range; ... /*in proto_register

[Wireshark-dev] Re : dissector_add(tcp.proto... / where to find parameter for dissector_add()

2009-04-23 Thread yvanmmailbox-web
Hi Eddie, I'm almost a beginner so maybe I'm wrong, but here is what I suppose: udp.proto doesn't exists; if you want to dissect all frames that contain udp protocol, you should use: dissector_add("ip.proto", 0x11, red_handle) but in this case you lose the UDP dissection (and your dissection will

[Wireshark-dev] Tr : Dissector preferences reuse

2009-04-23 Thread yvanmmailbox-web
Hi, Is there someone that can answer to my questions and solve my problem? Thanks a lot! Yvan - Message transféré De : "yvanmmailbox-...@yahoo.fr" À : wireshark-dev@wireshark.org Envoyé le : Mardi, 21 Avril 2009, 11h37mn 26s Objet : Dissector preferences reuse Hi all, I 'm workin

[Wireshark-dev] Dissector preferences reuse

2009-04-21 Thread yvanmmailbox-web
Hi all, I 'm working on 2 plugin dissectors, and I wish to know if it's possible (and if yes, how) to reuse preferences from one plugin to another. I need to reuse only a part of the preferences (which is an UAT table, so pretty long and boring to define) from plugin1 to plugin2, considering th

[Wireshark-dev] Re : Re : RVALS in display filters

2009-04-15 Thread yvanmmailbox-web
I tried 1.0.7 and it works. Thanks for your help Yvan De : "Maynard, Chris" À : Developer support list for Wireshark Envoyé le : Mardi, 14 Avril 2009, 18h58mn 41s Objet : Re: [Wireshark-dev] Re : RVALS in display filters C:\wireshark\svn\epan\dissectors>

[Wireshark-dev] Re : RVALS in display filters

2009-04-15 Thread yvanmmailbox-web
I don't have any error reported, just the window with "Wireshark encountered a problem and must close. Sorry for..." to send the report error to Microsoft; Here is the header of the report error (I don't know if it's useful) AppName: wireshark.exe AppVer: 1.0.6.27387 ModName: libglib-2.0-

[Wireshark-dev] Re : RVALS in display filters

2009-04-14 Thread yvanmmailbox-web
Yes, it is. I also use this structure to display information in the COL_INFO and in the proto_tree_add_protocol_format() using the rval_to_str(), and it works. I tried to just add the item in the tree but it is impossible if I don't have also the hf declared in the hf_register_info, so maybe it

[Wireshark-dev] RVALS in display filters

2009-04-14 Thread yvanmmailbox-web
Hi all, I am working on a dissector plugin. I have a problem with the use of RVALS in display filter. As indicated in README.developer, I wrote my code like that: ... guint8 type = 0; type = tvb_get_guint8(tvb, 29); ... proto_tree_add_uint(afdx_tree, hf_type, tvb, 29, 1, type); ... { &hf_t

[Wireshark-dev] Re : Re : Modifying the ETH dissector

2009-04-10 Thread yvanmmailbox-web
Actually, I did what you explained me, and I obtained...what I wanted! Indeed, Ethernet information is available in the pinfo structure, but I don't have Ethernet tree, even it is called (I can see in "frame.protocols" I have eth:afdx:ip:udp);it is replaced by my own tree. My "problem" in this c

[Wireshark-dev] Re : Modifying the ETH dissector

2009-04-08 Thread yvanmmailbox-web
Hi, Thanks a lot for this information. I hadn't the README.heuristic, and I haven't understood the role of pinfo;I'll use it for sure. Is it possible to have Ethernet information without having the Ethernet tree in my structure, with a heuristic dissector? In the proto_reg_handoff_PROTOABBREV(void

[Wireshark-dev] Modifying the ETH dissector

2009-04-06 Thread yvanmmailbox-web
Hi all, I'm beginner in Wireshark plugin development. As Valentin said in a previous mail (http://www.wireshark.org/lists/wireshark-dev/200803/msg00285.html), I also need to develop an AFDX plugin. I am interested in the solution explained in this URL, to add a heuristic dissector, but I have som