1 | initial version |
You can try adding a pL1_LoxoneLink.init()
function that calls Dissector.get("LoxonePayload")
. For example:
local LoxonePayloadDissector
function pL1_LoxoneLink.init()
LoxonePayloadDissector = Dissector.get("LoxonePayload")`
end
function pL1_LoxoneLink.dissector(buffer, pinfo, tree)
local subtree = tree:add(pL1_LoxoneLink, buffer())
************** some more code ****************
-- call Layer2 dissector for payload
LoxonePayloadDissector:call(buffer(offset, buffer:len() - offset):tvb(), packet_info, tree)
end
Ref: 11.3.5.7. proto.init
2 | No.2 Revision |
You can try adding a pL1_LoxoneLink.init()
function that calls Dissector.get("LoxonePayload")
. For example:
local LoxonePayloadDissector
function pL1_LoxoneLink.init()
LoxonePayloadDissector = Dissector.get("LoxonePayload")`
Dissector.get("LoxonePayload")
end
function pL1_LoxoneLink.dissector(buffer, pinfo, tree)
local subtree = tree:add(pL1_LoxoneLink, buffer())
************** some more code ****************
-- call Layer2 dissector for payload
LoxonePayloadDissector:call(buffer(offset, buffer:len() - offset):tvb(), packet_info, tree)
end
Ref: 11.3.5.7. proto.init