Wireshark mailing list archives

Re: Wireshark 1.3.1 and python dissector


From: Sébastien Tandel <sebastien.tandel () gmail com>
Date: Mon, 9 Nov 2009 10:41:18 +0100

Hi Joni,


python dissectors is something highly experimental and not complete 'til
now. I made only one commit to the tree ;)

The tests I made were only with tshark and on Linux. It appears that it is
not working for windows nor with wireshark. I'm not sure why in the case of
wireshark. I thought that if working with tshark, it should work for
wireshark too but it seems that it needs some additional stuffs.

I will have some time these next weeks to work on this and hope to fix and
extend a bit this first draft.


Regards,
Sebastien Tandel


On Mon, Nov 9, 2009 at 10:08, Joni Korhonen <joni.korhonen () gmail com> wrote:

Hello,
First of all, I was more than happy to hear that ws dissectors could
also be done with python :-)
Has there been any changes in how to use python dissector in ws 1.3.1?

I tried the example showed in wiki page
(http://wiki.wireshark.org/Python), but it didn't work at all:
(register_protocol): subt = tp.subtrees() causes "Subtree object is
not callable", since its a reference to Subtree object...

changing to:

subt = tp.subtrees caused crash:
**
ERROR:packet.c:728:dissector_add: assertion failed: (sub_dissectors)
Aborted

Basic info:
(Ubuntu 9.04)
I used developement version of wireshark (1.3.1)
gcc (GCC) 4.2.4
Python 2.6.2

Any Ideas what I'm missing?

Br
Joni
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
            mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: