Open half2me opened 7 months ago
Compare that to the same thing written in lua which works perfectly:
--- requires https://github.com/Snaipe/wssdl/releases/download/v0.2.0/wssdl.lua
local wssdl = require 'wssdl'
ant_pkt = wssdl.packet {
sync:u8():hex(),
length:u8(),
class:u8():hex(),
payload:payload({ class, 'antplus.class' }, length * 8),
checksum:u8():hex()
}
proto = ant_pkt:proto('antplus', 'ANT+ Protocol')
wssdl.dissect {
usb.bulk:add { [0xFFFF] = proto }
}
I'm having issues getting this to do anything. It just doesn't show up anywhere. The dissector tables look the same, and the protocol is not added to the list of protocols.
Here is my code I'm trying out:
It builds fine, I copy the file to
~/.local/lib/wireshark/plugins/4-2/epan/ant.so
. And wireshark loads the plugin without issues.However nothing changes, the protocol is not added anywhere and the dissector table is unchanged:
What am I doing wrong? I tried the
baby_udp
example to see if it was just something in this code, but that protocol doesn't show up for me either :¯_(ツ)_/¯: