Wireshark-bugs: [Wireshark-bugs] [Bug 7465] New: wslua should be updated to write pcap-ng files

Date: Tue, 10 Jul 2012 11:38:45 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7465

           Summary: wslua should be updated to write pcap-ng files
           Product: Wireshark
           Version: 1.9.x (Experimental)
          Platform: x86
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Low
         Component: Wireshark
        AssignedTo: bugzilla-admin@xxxxxxxxxxxxx
        ReportedBy: anders.broman@xxxxxxxxxxxx


Build Information:
Paste the COMPLETE build information from "Help->About Wireshark", "wireshark
-v", or "tshark -v".
--
wslua_dumper should be updated to write pcap-ng files at least if the file
beeing read is a pcap-ng file.

It might be as simple as adding something like

    shb_hdr = wtap_file_get_shb_info(cf->wth);
    idb_inf = wtap_file_get_idb_info(cf->wth);

-    d = wtap_dump_open(filename, filetype, encap, 0 , FALSE, &err);
+    d = wtap_dump_open_ng(filename, filetype, encap, 0 , FALSE,shb_hdr,  
idb_inf, &err);

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.