Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

if protbuf inside protobuf is stored as byte then following will work.

local pbuf_dissector_table = DissectorTable.get("protobuf_field")
pbuf_dissector_table:add(<fullpathofbyteprotobuffield>,newprotodissector)

then in the new dissector do following:

pinfo.private["pb_msg_type"] = "message," .. <actulatypeofnestedprotobuf> 
Dissector.get("protobuf"):call(tvb, pinfo, subtree)

if protbuf inside protobuf is stored as byte then following will work.

local pbuf_dissector_table = DissectorTable.get("protobuf_field")
pbuf_dissector_table:add(<fullpathofbyteprotobuffield>,newprotodissector)

then in the new chained dissector do following:

pinfo.private["pb_msg_type"] = "message," .. <actulatypeofnestedprotobuf> 
Dissector.get("protobuf"):call(tvb, pinfo, subtree)