|
I have a
That bit changes a few fields in the message. Ideally, I'd be able to do something like:
Is there any shortcut to grabbing the value of a field (or bit) from the This would be easy in C-dissector. I'm still fumbling my way thru Lua. Thanks. |
|
Unfortunately, that's not possible. The On the other hand, EDIT: You might be interested in
I could grab the buffer and parse it, but I don't see bitwise operators in Lua. However, the lua docs state that is only supported in 5.2. Unfortunately, I'm not quite there yet. Is there another way to handle this fork in the road? Right now I key off the remaining packet length, but I'm not happy with that /solution/.
(22 May '12, 07:00)
TalleyHo
See updated answer. And Wireshark Lua has a built-in
(22 May '12, 07:10)
helloworld
Awesome. I didn't know about the bitfield function. Although, I think the docs may be bass-ackwards. The LED bit in my case is bit 5, however, I had to use extendedMsg = buffer(offset, 1):bitfield(2, 1) which says that the start position is 2 from the LEFT and 1 bit in width. Thanks for the pointer to bitfield, that did the trick.
(22 May '12, 12:56)
TalleyHo
You're right.
(22 May '12, 17:39)
helloworld
|
