local qq = Field.new("oicq.qqid") local tcpDPort = Field.new("tcp.dstport") local ipSrc = Field.new("ip.src_host") local getTime = Field.new("frame.time_epoch") do local function packet_listener() local tap = Listener.new("frame", "udp and (udp.dstport == 8000)") function tap.reset() -- print("tap reset") end function tap.packet(pinfo, tvb) if( qq() ) then local time = tostring( getTime() ) local id = tostring( qq() ) local sip = tostring( ipSrc() ) local to_be_print = time.." ".."qq_windows".." "..sip.." "..id print(to_be_print) end end function tap.draw() -- 结束执行 end end -- 监听报文 packet_listener() -- tcpStreamTable =nil end