ashdnazg / pyreshark

A Wireshark plugin providing a simple interface for writing dissectors in Python.
https://github.com/ashdnazg/pyreshark/releases/tag/0.1.4
170 stars 33 forks source link

Update pyreshark to Wireshark 1.12 #8

Closed wddozier closed 9 years ago

wddozier commented 10 years ago

plugin.c:44:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘const’ WS_DLL_PUBLIC_NOEXTERN const gchar version[] = VERSION; ^ plugin.c:48:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘void’ WS_DLL_PUBLIC_NOEXTERN void ^ plugin.c:54:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘void’ WS_DLL_PUBLIC_NOEXTERN void ^ $ gcc -v Using built-in specs. COLLECT_GCC=/usr/local/bin/gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-unknown-linux-gnu/4.8.2/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ./configure --disable-gnu-unique-object --disable-multilib --enable-version-specific-runtime-libs --enable-languages=c,c++ --prefix=/usr --program-suffix=48 Thread model: posix gcc version 4.8.2 (GCC)

ashdnazg commented 10 years ago

What version of wireshark did you try to build it with?

wddozier commented 10 years ago

The current stable version, 1.12.1.

On Oct 15, 2014, at 4:38 PM, ashdnazg notifications@github.com wrote:

What version of wireshark did you try to build it with?

— Reply to this email directly or view it on GitHub.

ashdnazg commented 10 years ago

Unfortunately I haven't updated pyreshark to work with 1.12.* yet.

wddozier commented 10 years ago

what is the latest version with which it will work?

On Oct 16, 2014, at 3:56 PM, ashdnazg notifications@github.com wrote:

Unfortunately I haven't updated pyreshark to work with 1.12.* yet.

— Reply to this email directly or view it on GitHub.

ashdnazg commented 10 years ago

1.10.* and I recommend pulling from the unstable branch.

okkervil commented 9 years ago

I am now writing a dissector using pyreshark, is there doc or any other sample dissector(such as tcp dissector)? Thank you!

ashdnazg commented 9 years ago

https://github.com/ashdnazg/pyreshark/wiki/Writing-Dissectors

okkervil commented 9 years ago

@ashdnazg Thanks a lot, but are there extra sample dissectors?

ashdnazg commented 9 years ago

I'm not familiar with any Open source ones except https://github.com/AdiKo/RPCSniffer/blob/master/pyreshark_rpc_dissector/rpc_protocol.py

okkervil commented 9 years ago

@ashdnazg Thanks again.

ashdnazg commented 9 years ago

Added in 0.1.4