Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to change COL_PROTOCOL with lua code

With C code, in the code sample, I guess:

Location at "https://www.wireshark.org/docs/wsdg_html_chunked/ChDissectAdd.html#ChDissectSetup" Example 9.3. Dissection. the code is col_set_str(pinfo->cinfo, COL_PROTOCOL, "FOO");

It will change the the content of PROTOCOL in the Wireshark, my question is, how to do the same thing with lua code.

i can see it in the same doc: 11.5.5.9. pinfo.curr_proto It should be the VAR for changing it. But, how to use the "pinfo.curr_proto" to change protocol in column of main display pane with lua.

Thanks in advance!

how to change COL_PROTOCOL with lua code

With C code, in the code sample, I guess:

Location at "https://www.wireshark.org/docs/wsdg_html_chunked/ChDissectAdd.html#ChDissectSetup" Example 9.3. Dissection. the code is

  col_set_str(pinfo->cinfo, **col_set_str(pinfo->cinfo, COL_PROTOCOL, "FOO");

"FOO");**

It will change the the content of PROTOCOL in the Wireshark, my question is, how to do the same thing with lua code.

i can see it in the same doc: doc:

11.5.5.9. pinfo.curr_proto
  It should be the VAR for changing it. But, how to use the "pinfo.curr_proto" to change protocol in column of main display pane with lua. 

**with lua**.

Thanks in advance!

how to change COL_PROTOCOL with lua code

With C code, in the code sample, I guess:

Location at "https://www.wireshark.org/docs/wsdg_html_chunked/ChDissectAdd.html#ChDissectSetup" Example 9.3. Dissection. the code is

 **col_set_str(pinfo->cinfo, col_set_str(pinfo->cinfo, COL_PROTOCOL, "FOO");**
"FOO");

It will change the the content of PROTOCOL in the Wireshark, my question is, how to do the same thing with lua code.

i can see it in the same doc:

11.5.5.9. pinfo.curr_proto

It should be the VAR for changing it. But, how to use the "pinfo.curr_proto" to change protocol in column of main display pane **with lua**.
with lua.

Thanks in advance!

how to change COL_PROTOCOL with lua code

With C code, in the code sample, I guess:

Location at "https://www.wireshark.org/docs/wsdg_html_chunked/ChDissectAdd.html#ChDissectSetup" https://www.wireshark.org/docs/wsdg_html_chunked/ChDissectAdd.html#ChDissectSetup Example 9.3. Dissection. the code is

 col_set_str(pinfo->cinfo, COL_PROTOCOL, "FOO");

It will change the the content of PROTOCOL in the Wireshark, my question is, how to do the same thing with lua code.

i can see it in the same doc:

11.5.5.9. pinfo.curr_proto

It should be the VAR for changing it. But, how to use the "pinfo.curr_proto" to change protocol in column of main display pane with lua. lua.

Thanks in advance!

how to change COL_PROTOCOL with lua code

With C code, in the code sample, I guess:

Location at https://www.wireshark.org/docs/wsdg_html_chunked/ChDissectAdd.html#ChDissectSetup Example the WSDG 9.3. Dissection. Dissection the code is

 col_set_str(pinfo->cinfo, COL_PROTOCOL, "FOO");

It will change the the content of PROTOCOL in the Wireshark, my question is, how to do the same thing with lua code.

i can see it in the same doc:

11.5.5.9. pinfo.curr_proto

It should be the VAR for changing it. But, how to use the "pinfo.curr_proto" to change protocol in column of main display pane with lua.

Thanks in advance!