How can I get the length of buffer data in dissector function. The type is userdata in lua, it points to raw memory. I have tried to convert it to metatable, but still cannot get the length of it.
function dissector(buffer,pinfo,tree)
print(buffer:len())
end
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more