[Wireshark-dev] accumulating data from UDP

2007-02-18 Thread Vladimir Zherdenovsky
Hi, The data of the protocol I written a dissector can be fragmented between UDP packets, but only inside the data I can know that it has been fragmented - UDP not fragmented. How I can accumulate all the data from different UDP packets to one buffer for parse it? Thanks vladimir __

[Wireshark-dev] how to restore the lower protocol buffer

2007-02-05 Thread Vladimir Zherdenovsky
Hello, I should write dissector to the "goo" protocol that encapsulated into "foo" protocol, which encapsulated into UDP. The "foo" protocol has small packets with fixed length, start indicator and number in the packet header. There are few foo packets in the UDP. The goo protocol shall be fragmen

Re: [Wireshark-dev] how to register the dissector

2007-02-05 Thread Vladimir Zherdenovsky
Thanks, It starts work after I add followed code lines: if (!dissector_try_port(foo_dissector_table, num, next_tvb, pinfo, tree)) { call_dissector(data_handle, next_tvb , pinfo, tree); } Thanks again, Vladimir Vladimir Zherdenovsky wrote: > Hi > > I have *FOO* proto

[Wireshark-dev] how to register the dissector

2007-02-02 Thread Vladimir Zherdenovsky
m2ou function, but it doesn't help - goo dissector doesn't accessed. What is missing? Thanks, Vladimir From: ronnie sahlberg [mailto:[EMAIL PROTECTED] Sent: Fri 2/2/2007 10:50 AM To: Developer support list for Wireshark Cc: Vladimir Zherdenovsk

[Wireshark-dev] about udp dissector

2007-02-02 Thread Vladimir Zherdenovsky
Hello, I just want to understand how the udp dissector works and have misunderstanding of following codes lines: static e_udphdr udphstruct[4], *udph; static int udph_count=0; udph_count++; if(udph_count>=4){ udph_count=0; } udph=&udphstruct[udph_count]; Could anybody

[Wireshark-dev] dissector registration

2007-01-28 Thread Vladimir Zherdenovsky
Hi, I want to write a dissector to a "foo" protocol inside UDP that includes another "goo" protocol inside. How can I register the low level (goo) dissector? Example proto_reg_handoff_foo: dissector_add("udp.port", foo_udp_port, foo_handle); Example proto_reg_handoff_goo: the second dissector

[Wireshark-dev] layer 2 dissector

2006-12-28 Thread Vladimir Zherdenovsky
Hi, I want to write dissector to layer II private protocol. The packet of my protocol looks like Ethernet II, with own type 0x. I tried to write dissector that uses "ethertype" with the 0x type: dissector_add("ethertype", ETHERTYPE_, _handle); But I missed some data from the Ethern