Wireshark-bugs: [Wireshark-bugs] [Bug 10801] New: wireshark lua engine, tap packet with h264 fil

Date: Sun, 21 Dec 2014 07:05:46 +0000
Bug ID 10801
Summary wireshark lua engine,tap packet with h264 filter,return the error information.
Product Wireshark
Version 1.12.2
Hardware x86
OS Windows 7
Status UNCONFIRMED
Severity Critical
Priority Low
Component Dissection engine (libwireshark)
Assignee [email protected]
Reporter [email protected]

Build Information:
C:\Users\zhouyy\workspace\lua\test\src>wireshark -v

C:\Users\zhouyy\workspace\lua\test\src>

wireshark 1.12.2 (v1.12.2-0-g898fa22 from master-1.12)

Copyright 1998-2014 Gerald Combs <[email protected]> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled (64-bit) with GTK+ 2.24.23, with Cairo 1.10.2, with Pango 1.34.0, with
GLib 2.38.0, with WinPcap (4_1_3), with libz 1.2.5, with SMI 0.4.8, with c-ares
1.9.1, with Lua 5.2, without Python, with GnuTLS 3.2.15, with Gcrypt 1.6.2,
without Kerberos, with GeoIP, with PortAudio V19-devel (built Nov 12 2014),
with
AirPcap.

Running on 64-bit Windows 7 Service Pack 1, build 7601, with WinPcap version
4.1.3 (packet.dll version 4.1.0.2980), based on libpcap version 1.0 branch
1_0_rel0b (20091008), GnuTLS 3.2.15, Gcrypt 1.6.2, without AirPcap.
Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz, with 7852MB of physical memory.


Built using Microsoft Visual C++ 10.0 build 40219

C:\Users\zhouyy\workspace\lua\test\src>

--
see lua plugin code like below,

local f_h264 = Field.new("h264")
local my_h264_tap = Listener.new(tap, "h264")
local tw = TextWindow.new("Export H264 to File Info Win")
function twappend(str)
      tw:append(str)
      tw:append("\n")
end

function my_h264_tap.packet(pinfo,tvb)
      local h264s = { f_h264() }
      for i,h264_f in ipairs(h264s) do
        if h264_f.len < 2 then
          return
        end
        local h264 = h264_f.value -- is ByteArray
        twappend("========>id:" .. tostring(pinfo.number) .. "what:" ..
h264:get_index(0));
     end
end

===========================

h264:get_index(0) method's return is wrong。where it should be nal unit header。

hope fix quickly。thanks。


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