Multiple ethertype for one dissector
Hello,
I am new to lua dissector. I wrote one that works great.
However, several ethertype use the same dissector.
ether_table = DissectorTable.get("ethertype")
ether_table:add(0x1234, my_dissector)
ether_table:add(0x1235, my_dissector)
ether_table:add(0x1236, my_dissector)
ether_table:add(0x1237, my_dissector)
My wish would be to distinguish them in the dissector using the ethertype field.
Currently, I have the following code.
pinfo.cols.protocol = "Information for 'Protocol' column"
Is it possible to obtain the ethertype from the dissector? So I can personalize the 'Protocol' column.
Thanks in advance for the help
Steve