ashdnazg / pyreshark

A Wireshark plugin providing a simple interface for writing dissectors in Python.

Home Page:https://github.com/ashdnazg/pyreshark/releases/tag/0.1.4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weird set_next_dissector behavior?

ijs6 opened this issue · comments

I might be overlooking something extremely simple... but I'm having some trouble setting the next dissector when passing a variable representing a string to the set_next_dissector() function, rather than a string itself. For instance:

self.set_next_dissector('protocol') works, while

self.set_next_dissector(protocol_name) does not, even if protocol_name == 'protocol' .

Other than this I have had zero problems getting dissectors to work properly.

Fixed. There was an error in a a dissector being called later in the chain which I believe was preventing proper function

Good job :)