Ask Your Question

Revision history [back]

Lua API: How to update ethernet type display name?

I'm trying to write a simple Lua dissector for VMware's [Beacon] protocol (ethertype 0x8922). For now I have:

local proto = Proto('vbeacon', 'vbeacon')

function proto.dissector(tvbuf, pinfo, tree)
    pinfo.cols.protocol = proto.name

    tree:add(proto, tvbuf(), 'Beacon')
end

DissectorTable.get('ethertype'):add(0x8922, proto)

In Wireshark the Beacon protocol is indeed recognized but Ethernet type is still Unknown. How can I update this Ethernet type?


Wireshark screenshot:

pic

Lua API: How to update ethernet type display name?

I'm trying to write a simple Lua dissector for VMware's [Beacon] Beacon protocol (ethertype 0x8922). For now I have:

local proto = Proto('vbeacon', 'vbeacon')

function proto.dissector(tvbuf, pinfo, tree)
    pinfo.cols.protocol = proto.name

    tree:add(proto, tvbuf(), 'Beacon')
end

DissectorTable.get('ethertype'):add(0x8922, proto)

In Wireshark the Beacon protocol is indeed recognized but Ethernet type is still Unknown. How can I update this Ethernet type?


Wireshark screenshot:

pic