Buffer length for lua wirehark buffer

How can I get the length of the buffer data in the dissector function. Type userdatain lua, it points to raw memory. I tried converting it to metatable, but still can't get its length.

+4
source share
1 answer

try it

function dissector(buffer,pinfo,tree)
    print(buffer:len())
end
+9
source

Source: https://habr.com/ru/post/1526409/


All Articles