MatrixEditor / ubnt-discovery-tool

Updated and faster version of the Ubnt Discovery Tool (last update 2017 by provider) for Java (with GUI and CLI)
The Unlicense
1 stars 1 forks source link

[BUG] - Wireshark Dissector #2

Open MatrixEditor opened 1 year ago

MatrixEditor commented 1 year ago

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:

  1. Capture some ubnt packets
  2. Activate dissector

Expected behavior grafik

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