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

lua how to set text to src dst column

0

Hi, All,

Does anyone know how to set text to src or dst column using LUA? I can set text to protocol and info column. I can only set IP addresses to src/dst column, but cannot find a way for string.

thanks! Bruce

asked 09 Nov '11, 08:20

Bruce%20Z's gravatar image

Bruce Z
1113
accept rate: 0%

edited 09 Nov '11, 08:21


One Answer:

1

that's because of the column field type is "Source address" I guess. I'm not sure if this can be changed from Lua. But you can add your own fields with arbitrary addresses (even ZIP code if you want) and configure Preferences/Columns to not display original source address field and display your field instead.

answered 09 Nov '11, 17:09

ShomeaX's gravatar image

ShomeaX
736
accept rate: 0%

Thx. I want to modify the source and destination since these fields are automatically picked up by Statistics->Flow Graph tool. I am pretty sure that these fields are modifiable thru C code, e.g. MTP3 layer changes them to point codes. Just want to know if it's possible in LUA.

(10 Nov '11, 13:30) Bruce Z