Ask Your Question

Revision history [back]

Field.new("diameter.CC-Request-Type") recognized in Window but not in Linux tshark

Hi,

I run the following in LUA script. It works with Windows' tshark 3.0.5, but not with Linux (3.0.5 or 3.1.0).

dia_CC_Request_Type_extractor = Field.new("diameter.CC-Request-Type") dia_result_code_extractor = Field.new("diameter.Result-Code")

$ ./tshark -q -r 1_rar.pcap -Xlua_script:diameter_stats_pcrf.lua tshark: Lua: Error during loading: diameter_stats_pcrf.lua:19: bad argument #1 to 'new' (Field_new: a field with this name must exist) $

$ ./tshark -version TShark (Wireshark) 3.1.0 (v3.1.0-0-g414ca80b2168)

Copyright 1998-2019 Gerald Combs [email protected] and contributors. License GPLv2+: GNU GPL version 2 or later https://www.gnu.org/licenses/gpl-2.0.html 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 (32-bit) with libpcap, without POSIX capabilities, without libnl, with GLib 2.56.1, with zlib 1.2.7, without SMI, without c-ares, with Lua 5.1.4, without GnuTLS, with Gcrypt 1.5.3, without Kerberos, without MaxMind DB resolver, without nghttp2, without brotli, with LZ4, without Snappy, with libxml2 2.9.1.

Running on Linux 3.10.0-1062.el7.centos.plus.i686, with 1858 MB of physical memory, with locale en_US.UTF-8, with libpcap version 1.9.1 (with TPACKET_V3), with Gcrypt 1.5.3, with zlib 1.2.7, binary plugins supported (0 loaded).

Built using gcc 4.8.5 20150623 (Red Hat 4.8.5-39). $

Please help to solve my problem.

Thanks, Januar

Field.new("diameter.CC-Request-Type") recognized in Window but not in Linux tshark

Hi,

I run the following in LUA script. It works with Windows' tshark 3.0.5, but not with Linux (3.0.5 or 3.1.0).

dia_CC_Request_Type_extractor = Field.new("diameter.CC-Request-Type") Field.new("diameter.CC-Request-Type")
dia_result_code_extractor = Field.new("diameter.Result-Code")

$ ./tshark -q -r 1_rar.pcap -Xlua_script:diameter_stats_pcrf.lua -Xlua_script:diameter_stats_pcrf.lua
tshark: Lua: Error during loading: loading:
diameter_stats_pcrf.lua:19: bad argument #1 to 'new' (Field_new: a field with this name must exist) exist)
$

$ ./tshark -version -version
TShark (Wireshark) 3.1.0 (v3.1.0-0-g414ca80b2168)

Copyright 1998-2019 Gerald Combs [email protected] and contributors. License GPLv2+: GNU GPL version 2 or later https://www.gnu.org/licenses/gpl-2.0.html 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 (32-bit) with libpcap, without POSIX capabilities, without libnl, with GLib 2.56.1, with zlib 1.2.7, without SMI, without c-ares, with Lua 5.1.4, without GnuTLS, with Gcrypt 1.5.3, without Kerberos, without MaxMind DB resolver, without nghttp2, without brotli, with LZ4, without Snappy, with libxml2 2.9.1.

Running on Linux 3.10.0-1062.el7.centos.plus.i686, with 1858 MB of physical memory, with locale en_US.UTF-8, with libpcap version 1.9.1 (with TPACKET_V3), with Gcrypt 1.5.3, with zlib 1.2.7, binary plugins supported (0 loaded).

Built using gcc 4.8.5 20150623 (Red Hat 4.8.5-39). $

Please help to solve my problem.

Thanks, Januar