Wireshark-bugs: [Wireshark-bugs] [Bug 5201] New: Lua: Trying to use Field.new("tcp.segments") to
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5201
Summary: Lua: Trying to use Field.new("tcp.segments") to get
reassembled TCP data is failed
Product: Wireshark
Version: 1.2.7
Platform: Other
OS/Version: Windows XP
Status: NEW
Severity: Major
Priority: Low
Component: Wireshark
AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
ReportedBy: qiangxiong.huang@xxxxxxxxx
Build Information:
Version 1.2.7 (SVN Rev 32341)
--
Trying to use Field.new("tcp.segments") to get reassembled TCP data is failed.
Try xxx.value or xxx() get nil. I checked the source code, and find the
reason is :
In packet-tcp.c, it set "tcp.segments" field to FT_NONE type;
Then in wslua_field.c, FT_NONE is converted to lua as nil.
My suggestion is to modify wslua_field.c->FieldInfo__call, to convert all
FT_NONE to lua ByteArray just like FT_PROTOCOL that has been converted to
ByteArray in 1.3.4.
Another bug about Field.new("tcp.segments") is xxx.range got "expired tvb"
error too in reassembled tcp packet.
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.