This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

lua script update Info field

0

I've got a LUA script which decodes an IPv6 extension header. I'd like to have my LUA script write information into the "Info" column in the top wireshark pane (the one where each row is a packet-- the Info colum is on the right). In my Lua script I've done "pinfo.cols.info = 'stuff'" but it doesn't appear-- what's shown is information from the transport protocol.

So my question is how might one write information from a LUA script to the Info field-- and prevent the transport layer from overriding that information?

Thanks

asked 17 Jul '14, 05:28

314's gravatar image

314
11223
accept rate: 0%


One Answer:

0

Instead of this:

pinfo.cols.info = 'stuff'

...try this instead:

pinfo.cols.info:set('stuff')
pinfo.cols.info:fence()

Note you need to be running Wireshark 1.10.6 or greater (the fence() function was added in 1.10.6).

answered 17 Jul '14, 07:31

Hadriel's gravatar image

Hadriel
2.7k2939
accept rate: 18%