Wireshark-bugs: [Wireshark-bugs] [Bug 7465] wslua should be updated to write pcap-ng files
Date: Mon, 11 Mar 2013 02:18:47 +0000

changed bug 7465

What Removed Added
CC   hadrielk@yahoo.com

Comment # 3 on bug 7465 from
I'm not sure I understand this bug.  I looked into the wslua_dumper code and it
looks like it does let one create a pcap-ng file, or any supported file format
for that matter.  Dumper.new() takes the filetype as its second argument, and
uses it in its call to wtap_dump_open().  It just defaults to legacy pcap if
you don't supply the second argument of a type, in Dumper.new().

What does appear to be missing is an enum table of the possible filetypes in
Lua as a list of Lua numbers you can use for this second argument.  I.e.,
there's no equivalent enum table for filetypes as there is for encoding types
in the 'wtap' Lua table.  So even though you can set the third argument to
Dumper.new() of an encoding type using a Lua variable, for example
'wtap.ETHERNET'... for the second argument of filetype you'd have to just give
a raw number (ie, the number 2 for PCAPNG) and hope it matches the C-code's
number for all wiresharks in the future.


You are receiving this mail because:
  • You are watching all bug changes.