Re: [Wireshark-dev] Lua script reads every packet twice

2019-06-05 Thread Jerry White
Guy and Pascal, Thanks very much! Jerry On Wed, Jun 5, 2019 at 12:52 PM Guy Harris wrote: > On Jun 5, 2019, at 12:34 PM, Jerry White wrote: > > > Please forgive for such a basic question. I noticed that my lua > dissector processes a trace file twice. > > *Wireshark

[Wireshark-dev] Lua script reads every packet twice

2019-06-05 Thread Jerry White
HI all, Please forgive for such a basic question. I noticed that my lua dissector processes a trace file twice. To isolate the issue I have removed nearly all my business code and reduced to a function that does one thing. It still processes the file twice. It processes each packet in the trace fi

[Wireshark-dev] LUA dissector: server port is 400-port range

2016-11-01 Thread Jerry White
I'm writing a dissector for an application that can use any tcp port between 8000-8399. I've been doing multiple port dissection with the following code, but it seems unmanageable for 400 ports. local tcp_port_table = DissectorTable.get("tcp.port") local mgi_dissector = tcp_port_table:get_dissecto

Re: [Wireshark-dev] How to evaluate hex/ebcdic packet data LUA

2016-10-24 Thread Jerry White
You, sir, are my new hero. It all works. Thank you! Jerry On Sun, Oct 23, 2016 at 11:48 PM, Guy Harris wrote: > That won't work for EBCDIC. > > All strings are kept as UTF-8 internally to Wireshark; this means that > Wireshark translates them from the character encoding in the packet to > UTF-8

[Wireshark-dev] How to evaluate hex/ebcdic packet data LUA

2016-10-23 Thread Jerry White
I'm having a dickens of a time working with the packet data in my Lua dissector. I'm trying to see if a particular byte has a particular value. This byte exists in three different places in the below code, and all I want to do is test if it contains 0xc4, and I just can't get it right. Any help is

Re: [Wireshark-dev] Lua file io

2016-10-21 Thread Jerry White
; Lua/Examples#dumping_to_multiple_files) > > > -Original Message----- > From: Jerry White > To: wireshark-dev > Sent: Fri, Oct 21, 2016 4:55 pm > Subject: [Wireshark-dev] Lua file io > > Does anyone have a sample lua script that writes to a file? I'd like to > dissect a p

[Wireshark-dev] Lua file io

2016-10-21 Thread Jerry White
Does anyone have a sample lua script that writes to a file? I'd like to dissect a packet and write some of the data into a text file. Thanks, Jerry ___ Sent via:Wireshark-dev mailing list Archives:https://www.wireshar

[Wireshark-dev] Intro and lua question

2016-10-21 Thread Jerry White
Hi, Quick intro: I'm Jerry White, live in the SF Bay Area. I've been a Wireshark user since the ethereal days. Also have pretty good experience with Riverbed SteelCentral Transaction Analyzer (aka ATX.) I used to work for OPNET/Riverbed. So Gerald Combs and I were co-workers. And Laur