gnikol / P4-Wireshark-Dissector

This repository contains the Wireshark dissector generator from a P4 file input.
Apache License 2.0
14 stars 6 forks source link

Doesn't decode stack #16

Closed technobilly closed 7 years ago

technobilly commented 7 years ago

Hi, for fun I took a p4 program which contained the standard mpls_t from switch.p4 and renamed the header and fields like so:

header_type breakfast_t { fields { bacon : 20; eggs : 3; toast : 1; jam : 8; } }

I then loaded the resulting lua into wireshark, read a pcap file containing 8 MPLS labels (I disabled MPLS decoding) and got the attached result. It only decodes the first label as a "breakfast." Is this a limitation in the dissector generator or a pilot error? Thanks. breakfast-lua

gnikol commented 7 years ago

Hi,

Thanks for trying the software! I'm afraid that this is a current limitation of the generated dissectors, i.e. they do not support chaining/stacking, but it is definitely a feature on my radar!

Thanks Yiorgos