Describe the bug
I don't know why, but the dissector does not apply correctly on UBNT discovery packets.
To Reproduce
Steps to reproduce the behavior:
Capture some ubnt packets
Activate dissector
Expected behavior
Additional context
If anyone knows why the following line does not result in executing the dissector, please answer with a comment.
local potential_len = buffer(2,2):int()
if (potential_len == (buffer:len() - 4)) -- why is this not working? (displaying the expression returns true)
then
ubnt_protocol.dissector(buffer, pinfo, tree)
return true
else return false end
Describe the bug I don't know why, but the dissector does not apply correctly on UBNT discovery packets.
To Reproduce Steps to reproduce the behavior:
Expected behavior
Additional context If anyone knows why the following line does not result in executing the dissector, please answer with a comment.