Wireshark-dev: Re: [Wireshark-dev] Extending wireshark with Python

From: m lu <mlmarklu@xxxxxxxxxxx>
Date: Wed, 15 Jul 2009 23:19:23 -0700

Hi,
 


Date: Wed, 15 Jul 2009 14:16:32 -0300

...

same as for binpac, could be useful for the ones who already wrote dissectors with it. 

So, it might be interesting to have both of them available for wireshark. I don't know tough what sort of limits (or not) pyconstruct could have.

Even though pyConstruct might not apply to all that binpac does, as an "internal DSL" pyConstruct might be quicker to implement with Python?  the easiest way to judge its limits might be to read their supplied sample protocols (in addition to file formats) in:
 
/usr/lib/python2.5/site-packages/construct/protocols/__init__.py
/usr/lib/python2.5/site-packages/construct/protocols/ss7stack.py
/usr/lib/python2.5/site-packages/construct/protocols/layer4/__init__.py
/usr/lib/python2.5/site-packages/construct/protocols/layer4/udp.py
/usr/lib/python2.5/site-packages/construct/protocols/layer4/tcp.py
/usr/lib/python2.5/site-packages/construct/protocols/layer4/sctp.py
/usr/lib/python2.5/site-packages/construct/protocols/layer4/isup.py
/usr/lib/python2.5/site-packages/construct/protocols/layer3/__init__.py
/usr/lib/python2.5/site-packages/construct/protocols/layer3/mtp3.py
/usr/lib/python2.5/site-packages/construct/protocols/layer3/ipx.py
/usr/lib/python2.5/site-packages/construct/protocols/layer3/ipv6.py
/usr/lib/python2.5/site-packages/construct/protocols/layer3/ipv4.py
/usr/lib/python2.5/site-packages/construct/protocols/layer3/icmpv6.py
/usr/lib/python2.5/site-packages/construct/protocols/layer3/icmpv4.py
/usr/lib/python2.5/site-packages/construct/protocols/layer3/dhcpv6.py
/usr/lib/python2.5/site-packages/construct/protocols/layer3/dhcpv4.py
/usr/lib/python2.5/site-packages/construct/protocols/layer2/__init__.py
/usr/lib/python2.5/site-packages/construct/protocols/layer2/mtp2.py
/usr/lib/python2.5/site-packages/construct/protocols/layer2/ethernet.py
/usr/lib/python2.5/site-packages/construct/protocols/layer2/arp.py
/usr/lib/python2.5/site-packages/construct/protocols/ipstack.py
/usr/lib/python2.5/site-packages/construct/protocols/application/__init__.py
/usr/lib/python2.5/site-packages/construct/protocols/application/xwindows.py
/usr/lib/python2.5/site-packages/construct/protocols/application/xdr.py
/usr/lib/python2.5/site-packages/construct/protocols/application/tftp.py
/usr/lib/python2.5/site-packages/construct/protocols/application/telnet.py
/usr/lib/python2.5/site-packages/construct/protocols/application/snmp.py
/usr/lib/python2.5/site-packages/construct/protocols/application/smtp.py
/usr/lib/python2.5/site-packages/construct/protocols/application/pop3.py
/usr/lib/python2.5/site-packages/construct/protocols/application/netbios.py
/usr/lib/python2.5/site-packages/construct/protocols/application/irc.py
/usr/lib/python2.5/site-packages/construct/protocols/application/http.py
/usr/lib/python2.5/site-packages/construct/protocols/application/ftp.py
/usr/lib/python2.5/site-packages/construct/protocols/application/dns.py



Regards,
Sebastien Tandel

 
On May 30, 2009, at 2:31 PM, Sébastien Tandel wrote:
> P.S. : I would like to add binpac within this python interpreter.
> But after having read the paper and thought a bit about the grammar,
> I think they've used Haskell (or another pure functional language
> for their compiler).


Create a cool, new character for your Windows Live™ Messenger. Check it out

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



Internet Explorer 8 makes surfing easier. Get it now!