THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.

Revision history  [back]

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

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