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

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%


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).

permanent link

answered 17 Jul '14, 07:31

Hadriel's gravatar image

Hadriel
2.7k2939
accept rate: 18%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×431
×31
×16
×2

question asked: 17 Jul '14, 05:28

question was seen: 2,551 times

last updated: 17 Jul '14, 07:31

p​o​w​e​r​e​d by O​S​Q​A