I'm parsing some payloads in IEEE 802.15.4. The structure of the payloads is that the first byte indicates the data type. I would like to be able to filter by payload type. I seem to be able to create the filter for my dissector that is visible in the "Display Filter Expressions" dialog, but whenever I try to filter by the value it always filter out every one of my packets regardless of how I define my filter, such as type!=123 when I know that I have many times other than 123. Also simply entering type in the filter window filter out all my packets. I've tried a bunch of ways to try and set the type filed and no joy. Would appreciate any pointers. Here is the code:
As a bonus question, I seem to behaving difficulty getting the sub trees of my packet byte pane to highlight subsections of the payload bytes. How to I do that tied together? asked 23 Feb ‘17, 17:48 MountainLogic edited 24 Feb ‘17, 11:48 |
One Answer:
What is
See if that gets you any further? There are also many Lua examples available on the wiki that should help you. See my answer to this question for a list of some. I also provided a simple Lua example in a comment I made to this other question, along with a link to a capture file hosted at cloudshark, which may or may not be useful to you as well. answered 24 Feb ‘17, 11:27 cmaynard ♦♦ |
Christopher , great answer. Works like a charm and I it has really helped. Yes, I had tried to change variable name to something a bit more general and in the original it did get called just fine. I’ve edited my code in the the question so I believe you can delete everything up to “Maybe” in your answer. Thanks –scott