Wireshark-bugs: [Wireshark-bugs] [Bug 10696] New: lua bindings do not expose dissector_add_handl
Bug ID |
10696
|
Summary |
lua bindings do not expose dissector_add_handle
|
Product |
Wireshark
|
Version |
1.12.1
|
Hardware |
x86-64
|
OS |
Debian
|
Status |
UNCONFIRMED
|
Severity |
Normal
|
Priority |
Low
|
Component |
Dissection engine (libwireshark)
|
Assignee |
bugzilla-admin@wireshark.org
|
Reporter |
matthijs@stdin.nl
|
Build Information:
Debian version 1.12.1+g01b65bf-1
wireshark 1.12.1 (Git Rev Unknown from unknown)
Copyright 1998-2014 Gerald Combs <gerald@wireshark.org> 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+ 3.12.2, with Cairo 1.12.16, with Pango 1.36.7, with
GLib 2.40.0, with libpcap, with libz 1.2.8, with POSIX capabilities (Linux),
with libnl 3, with SMI 0.4.8, with c-ares 1.10.0, with Lua 5.2, without Python,
with GnuTLS 3.3.7, with Gcrypt 1.6.2, with MIT Kerberos, with GeoIP, with
PortAudio V19-devel (built Feb 15 2014 23:28:00), without AirPcap.
Running on Linux 3.18.0-rc3+, with locale en_US.UTF-8, with libpcap version
1.6.2, with libz 1.2.8, GnuTLS 3.3.7, Gcrypt 1.6.2.
Intel(R) Core(TM) i7 CPU M 620 @ 2.67GHz
Built using gcc 4.9.1.
--
The only way to register a (non-heuristic) dissector into a table from lua now
is through DissectorTable_add, which calls dissector_add_string,
dissector_add_uint or dissector_add_uint_range. Those functions do in turn call
dissector_add_handle, but now there is no way to just call it directly, without
actually adding a pattern for the dissector. In other words, you can't make a
dissector show up just in the Decode As... dialog, without also assigning it a
specific port/wpanid/whatever.
Making the first argument optional, or adding a new method to expose this would
seem helpful?
You are receiving this mail because:
- You are watching all bug changes.