This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Lua Dissector for the whole Frame

0

Hi

I am new in this community and I understood how to create a dissector for a tcp/udp packet in LUA. But I want to create a dissector in LUA which dissect the whole frame because I want to handle the MAC address. I have searched in different topics and I didn't find what I want or I cannot apply what I found. May you have an advice to help me ?

Thank you.

asked 03 May '17, 07:55

yassbouc's gravatar image

yassbouc
6112
accept rate: 0%


One Answer:

0

If you want to fetch values from other dissectors you can try fetch using a Field. For MAC addresses maybe something like this:

eth_src_f = Field.new("eth.src")
eth_dst_f = Field.new("eth.dst")

Have a look in the Field documentation.

answered 08 Jul '17, 11:53

stig's gravatar image

stig ♦
46337
accept rate: 0%