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

Good day. I need to extract data from the FIX protocol dissector(included in Wireshark) by using the LUA scripting. So I'm able to get all static fields by using extractor variable(for example, fe_FIX_MsgType = Field.new("fix.MsgType") ). But I found a problem while trying to extract all the fields of FIX protocol of such message type as Market Data - Snapshot / Full Refresh, where field NoMDEntries is dynamically changing and represents the number of next following fields. As you understand these fields use the same ProtoFields so that after dissecting one value, the other value overwrites it. That's why i can't extract all the needed values. Please help me in this question. How can I get all the fields??? Thanks.

asked 19 Nov '10, 08:56

johndaw's gravatar image

johndaw
1111
accept rate: 0%


You probably need to ask field extractor to return a table. Run it in brackets {} like below

fe_FIX_MsgType = Field.new("fix.MsgType")

local table_of_msg_types = { fe_FIX_MsgType() } 
for id,msg_type in pairs(table_of_msg_types)
do
    print("Doing something with Msg id: "..id." type: "..msg_type.value)
end
permanent link

answered 27 Nov '10, 15:21

izopizo's gravatar image

izopizo
2024714
accept rate: 0%

@johndaw I want to know how to get the Fix dissector written in LUA which is included in wireshark. Can any one please point me.

(14 Feb '16, 17:14) fixmessenger
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:

×637
×431
×124
×14

question asked: 19 Nov '10, 08:56

question was seen: 8,549 times

last updated: 14 Feb '16, 17:14

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