Age | Commit message (Collapse) | Author | Files | Lines |
|
This commit reduces size (from 144B to 128B on AMD64) of frame_data structure.
Part of bug 5821: Reduce per-packet memory requirements.
svn path=/trunk/; revision=45071
|
|
svn path=/trunk/; revision=45070
|
|
svn path=/trunk/; revision=45067
|
|
svn path=/trunk/; revision=45016
|
|
Add get_filter method to Wireshark's Lua interface (to correspond with the
already-exposed set_filter method).
svn path=/trunk/; revision=44916
|
|
Add new parameter 'data' to heur_dissector_t and new_dissector_t, for now it's always NULL
svn path=/trunk/; revision=44860
|
|
svn path=/trunk/; revision=44748
|
|
crashes from garbage data.
Also, give Lua a copy of the packet comment if there is one.
Fixes: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7538
svn path=/trunk/; revision=44093
|
|
They made cppcheck unhappy.
svn path=/trunk/; revision=43779
|
|
Fix leaks
- don't g_strdup a string just to use it in a g_strdup_printf
- clean up properly in error cases in lua bindings
- misc. other missing g_free() calls
- one missing fclose() in the new 80211_utils
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7454
svn path=/trunk/; revision=43617
|
|
(COPYING will be updated in next commit)
svn path=/trunk/; revision=43536
|
|
Update Lua from 5.1 to 5.2
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7400
svn path=/trunk/; revision=43482
|
|
Update Lua from 5.1 to 5.2
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7400
svn path=/trunk/; revision=43479
|
|
in Lua error messages related to running Wireshark as root
svn path=/trunk/; revision=43442
|
|
svn path=/trunk/; revision=43314
|
|
svn path=/trunk/; revision=43116
|
|
svn path=/trunk/; revision=43115
|
|
Fixes Coverity CID 702382 Missing break in switch.
svn path=/trunk/; revision=42845
|
|
Fix Three memory leaks and a bad if-condition, as caught by CppCheck.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7272
svn path=/trunk/; revision=42738
|
|
svn path=/trunk/; revision=42622
|
|
proto_tree_add_item() calls.
Add new "add_packet_field" method to the TreeItem class, taking a
protocol field (*not* a protocol), TvbRange, and encoding value as
arguments.
Add the ENC_ values to init.lua. Make them all hex #defines so
make-init-lua.pl can easily extract them.
Export tvb_unicode_strsize() for use by Lua (and elsewhere as desired).
Note that it handles UTF-16 and UTF-8, and fix the comment to note that
its count of hexadectets *does* include the null terminator (that's what
the code does).
svn path=/trunk/; revision=42621
|
|
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7202
svn path=/trunk/; revision=42281
|
|
svn path=/trunk/; revision=42280
|
|
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7202
svn path=/trunk/; revision=42279
|
|
from makefiles (and thus from the buildbot).
The intention is to be able to tell when a human is running the tool so we
can provide more code-review guidance.
As a starter, enable the "too many proto_tree_add_text() calls" check when
a human is running the tool.
svn path=/trunk/; revision=41943
|
|
svn path=/trunk/; revision=41552
|
|
svn path=/trunk/; revision=41441
|
|
svn path=/trunk/; revision=41180
|
|
The Lua API does not have FT_*, it has ftypes.*, so use that in the
documentation. Also, list out each ft so the user knows what the available
options are.
svn path=/trunk/; revision=41035
|
|
The Lua API does not have BASE_*, it has base.*, so use that. Also, list out
each base so the user knows what the available options are.
svn path=/trunk/; revision=41024
|
|
Give an example of a Pref.range's default value.
svn path=/trunk/; revision=41023
|
|
svn path=/trunk/; revision=40762
|
|
modify the string in place, they return a g_mallocated modified version
of the string passed into them.
svn path=/trunk/; revision=40727
|
|
size_t is sometimes an integer and sometimes a long. To avoid compiler
warnings when formatting it, cast it to a long.
svn path=/trunk/; revision=40682
|
|
svn path=/trunk/; revision=40456
|
|
svn path=/trunk/; revision=39764
|
|
except stack invalid, and will lead to a crash.
In this case it was when calling a dissector from a table in a Lua script.
svn path=/trunk/; revision=39748
|
|
Fix memory errors in Lua dissectors.
- Free Tvb when created from ByteArray.
- Free TvbRange correctly.
- Free string from get_persconffile_path and get_datafile_path.
- Some code cleanup.
svn path=/trunk/; revision=39744
|
|
svn path=/trunk/; revision=39684
|
|
this name will be collected when loading a capture file and the name
will be gone.
svn path=/trunk/; revision=39681
|
|
svn path=/trunk/; revision=39571
|
|
- FT_FRAMENUM can not have a bitmask.
svn path=/trunk/; revision=39563
|
|
- Adding a INT64/UINT64 field with a value string (currently unsupported).
- Trying to display a signed integer as hexadecimal.
svn path=/trunk/; revision=39562
|
|
svn path=/trunk/; revision=39468
|
|
This works between C and Lua.
In C the pinfo.private_table pointer must be initialized using
g_hash_table_new (g_str_hash, g_str_equal);
In Lua the values are available using pinfo.private.<key>, and the
table is created automatically on first usage. It's possible to use
this datatypes: nil, boolean, number and string, but every value
is converted to string so numbers must be converted using tonumber()
on usage. Boolean is either nil or an empty string.
svn path=/trunk/; revision=39461
|
|
svn path=/trunk/; revision=39458
|
|
ethertype, fragmented, in_error_pkt, match_uint and match_string.
svn path=/trunk/; revision=39407
|
|
Added Lua TvbRange unicode string methods.
svn path=/trunk/; revision=39225
|
|
Removed an unused argument to wslua_init().
svn path=/trunk/; revision=39214
|
|
Skip files starting with . also on windows, as the home directory
may be mounted from a server with a proper filesystem.
svn path=/trunk/; revision=38737
|