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

Hi all,

We use some LUA files to decode our specifics frames. Some of or LUA have a lot of values (more than 60) in the function (dissector). Wireshark displays me an alert message before launching "Function at line 141 has more than 60 upvalues"

here an example ok LUA function :

--Dissector
function p_omap_Global_Counters.dissector(buf, pkt, root)

    --Set info
    pkt.cols.info:append(" : " .. p_omap_Global_Counters.name)

    --Root
    local Global_Counters_tree = root:add(p_omap_Global_Counters, buf(0))
    Global_Counters_tree:add(f_counter_arrayasync_data_sync_unshared_data_dropped_, buf(0, 4))
    Global_Counters_tree:add(f_counter_arrayccp_com_safe_rx_message_dropped_, buf(4, 4))
    Global_Counters_tree:add(f_counter_arrayccp_com_safe_rx_unkown_message_dropped_, buf(8, 4))
etc...

Is it possible to change this limitation ? (We use version 1.10.3) thx for your help Mickaël

asked 16 Oct '15, 00:52

Micka%C3%ABl's gravatar image

Mickaël
1112
accept rate: 0%

edited 16 Oct '15, 06:29


The pb came from the number of local variable declared (>60) I solved it by declaring all my local variable into one array :

--Protocol
local omapVars =
{
   myVar1example = ...,
   myVar2example = ...,
       ....
    }
permanent link

answered 16 Oct '15, 06:28

Micka%C3%ABl's gravatar image

Mickaël
1112
accept rate: 0%

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
×11
×8
×1

question asked: 16 Oct '15, 00:52

question was seen: 2,486 times

last updated: 16 Oct '15, 06:29

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