Hello, Everyone! We need to capture TZSP traffic from our wifi access points. We create capture filter but i found error in default TZSP dissector in tzsp.wlan.signal field. Our AP's send signal strength in 2 byte format field but wireshark decodes it as 1 byte field. Where can i change field size in packet-tzsp.c source file? Wireshark Interpretation: Correct Interpretation: asked 21 Apr '15, 07:06 Michael Bychkov edited 21 Apr '15, 07:08 |
One Answer:
packet-tzsp.c refers to http://web.archive.org/web/20050404125022/http://www.networkchemistry.com/support/appnotes/an001_tzsp.html Which specify WLAN_RADIO_HDR_SIGNAL 10 Signal strength of the received packet. Signed byte. Which seems to imply a one byte value... On the other hand it also says "the tag is followed by one byte containing the length of the value field in bytes" If you want to change the code You have to edit these lines
to
Note that this will not work for length > 2 answered 21 Apr '15, 07:37 Anders ♦ showing 5 of 9 show 4 more comments |
And it will not work if the Length is indeed 1 byte. So this cannot be a generic solution.
Why wouldn't it work with one byte?
Gah because of int type (negative values), ok so use..add_int.. And do lengt check etc before adding the value
Doesn't the description imply a variable length field, in which case you need to read the length and then add the appropriately sized value?
Having a capture with that packet in would help.
Juniper's WLA send two bytes in that field.
Please file a bug on the Wireshark Bugzilla and attach a capture to the bug for use when testing the fix.
I tried to change from:
to
But it doesn’t work also.
What does it do instead of working?
Note that the “Silence” value also appears to be 2 bytes, so you’d need to change that as well, if by “doesn’t work” means “Signal is now OK, but Silence isn’t OK”.
Ok, How can i put into output file fields in HEX from tcpdump?