Ask Your Question

Nicolas's profile - activity

2021-02-01 16:02:23 +0000 received badge  Famous Question (source)
2020-01-12 02:44:50 +0000 received badge  Notable Question (source)
2019-12-06 14:55:31 +0000 received badge  Famous Question (source)
2019-05-03 08:04:51 +0000 received badge  Popular Question (source)
2019-02-05 01:56:50 +0000 received badge  Notable Question (source)
2018-10-18 07:25:10 +0000 received badge  Popular Question (source)
2017-12-05 15:10:41 +0000 received badge  Taxonomist
2017-11-24 16:20:06 +0000 asked a question Use a UDP payload dissector depending on ip addresses

Use a UDP payload dissector depending on ip addresses Hello, I wrote a lua dissector that dissects UDP data. It is calle

2017-10-31 16:46:31 +0000 marked best answer how to invert two bytes in lua script dissector ?

Hello, I'm writting a wireshark dissector using .lua script. I meet a problem with fields where most significant byte is inverted. Two cases, 16bits and 32 bits fields. In the network packet, it is present with the format : "02 80" i want to display 80 02 "14 7d 00 00" i want to display 00 00 7d 14

I tried to use the bit.bswap() function as followed :

local bit = require("bit")
...
local SAI_data = tvbuf:range(2,2):uint()
SAI_data = bit.bswap(SAI_data)

But i got an error as the bit library or bit.lua script is not installed. Is it possible to install it ? How to do that ? Or is there any other way to configure the range function to invert read bytes ?

Thank you

2017-10-31 16:46:31 +0000 received badge  Scholar (source)
2017-10-31 16:04:32 +0000 commented answer how to invert two bytes in lua script dissector ?

Hi, Thank you very much. I did not make link with little indian byte order at first time. Thanks for your help.

2017-10-30 16:14:30 +0000 edited question how to invert two bytes in lua script dissector ?

how to invert two bytes in lua script dissector ? Hello, I'm writting a wireshark dissector using .lua script. I meet a

2017-10-30 16:14:14 +0000 received badge  Editor (source)
2017-10-30 16:14:14 +0000 edited question how to invert two bytes in lua script dissector ?

how to invert two bytes in lua script dissector ? Hello, I'm writting a wireshark dissector using .lua script. I meet a

2017-10-30 16:13:34 +0000 asked a question how to invert two bytes in lua script dissector ?

how to invert two bytes in lua script dissector ? Hello, I'm writting a wireshark dissector using .lua script. I meet a