Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to get the raw bytes of a data link address in lua dissector pinfo (pinfo.dl_src or pinfo.dl_dst)?

Suppose the destination address of the ethernet frame is {0x00, 0x01, 0x02, 0x03, 0x04, 0x05}, how do I get the address as raw bytes similar to tvb? It currently displays it with name resolution and : in between the address bytes in a lua dissector. This address information comes in pinfo.dl_dst field.