Age | Commit message (Collapse) | Author | Files | Lines |
|
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39468 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39461 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39458 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
ethertype, fragmented, in_error_pkt, match_uint and match_string.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39407 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
Added Lua TvbRange unicode string methods.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39225 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
Removed an unused argument to wslua_init().
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39214 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
Skip files starting with . also on windows, as the home directory
may be mounted from a server with a proper filesystem.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38737 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38736 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38648 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
This object can be used to retreive other absolute and relative time fields,
create and modify nstime_t values and put generated time values in the tree.
Also added ProtoField.absolute_time and ProtoField.relative_time.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38616 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38485 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6175 :
The attached patch adds the method reported_length_remaining to tvb.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38464 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38461 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38414 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
In order to compile the whole project with -DG_DISABLE_DEPRECATED
the mate plugin needs to replace its usage of GMemChunk.
All other places should be clean.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38392 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
Added ability to display UTC time or UTC time with date. I liked having the
difference between UTC and local time, not just setting local=UTC.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2629
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37898 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
Improved set_color_filter_slot documentation.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37813 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
Lua API: add support to temporary color filters (10 color slots)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37801 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
Add NULL checks and fix typos in Lua error print-outs
From me:
Use the error message "GUI not available" when using GUI functions in tshark.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37788 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
This fixes bug 5569.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37787 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
the "default".
This fixes bug 5896.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37786 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
Added argument validation to Pref.range.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37785 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
Fix TvbRange:string() so that it returns a string that contains all bytes
of the range, including zeroes (instead of being truncated at first zero).
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37763 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
This may fix bug 5734.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37762 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
Documentation is generated from code.
This fixes bug 5199.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37761 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
Documentation is generated from code.
This fixes bug 5006.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37760 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
to TShark which dumps a list of plugins.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37512 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
Convert TVB_RAW_OFFSET() and TVB_GET_DS_TVB() into functions.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37422 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
with a variant of the patch submitted by Alexander Stein on the -dev list:
Allow FT_FRAMENUMs to be added (as base BASE_NONE). My change from Alexander's
patch is to disallow BASE_NONE for non-framenum integers.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37239 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37216 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37029 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
and hostnames in network byte order. Have it return everything in
network byte order.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36873 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
This avoids a warning building epan.c which includes both config.h and wslua.h
(duplicate defines from config.h)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36751 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36639 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5694 :
This patch adds the capability to create BACnet statistics trees.
Find the respective menu items under 'Statistics->BACnet'.
Packets can be sorted by different criteria:
- Src/Dst IP adresses
- Instance ID
- Object Type
- Service
From me:
- Don't use C++/C99-style comments.
- Name variables for tick_stat_node() don't need to be static.
- Change updateBacnetInfoValue() to require 'data' to be ep_ allocated. Change
the couple of calls that did not send in ep_ allocated data to do so.
- Change one or two functions to be static.
- Do not use (memory-unsafe) g_sprintf().
- Use ep_strconcat() instead of leaking memory with g_strconcat().
- Put back one if(tree) that doesn't appear to do any harm.
- Remove variable declarations and #includes from the header file.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36468 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
col_set_str simply stores the pointer passed to it, and luaL_checkstring
returns a temporary pointer. Changing col_set_str to col_add_str in
Columns_newindex seems to fix the issue.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35795 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
- Define macros for certain CFLAGS in config.nmake iso of having defs in each makefile;
a. -DHAVE_CONFIG_H and -D_U_="" are now part of a macro named STANDARD_CFLAGS;
b. -WX has been replaced by WARNINGS_ARE_ERRORS (defined as -WX in config.nmake)
(This allows disabling "Warnings as Errors" by just changing config.nmake)
c. CVARSDLL definitions (not usage) have been removed from the various makefiles.
XXX: It appears the usage of CVARSDLL can also be removed (not yet done) since:
-DWIN32 and -DNULL=0 do not appear to be needed (any more);
-D_MT and _D_DLL are not needed since /MP causes these definitions.
d. Define a macro WARNINGS_CFLAGS with additional specific compiler (level4) warnings to be enabled.
E.G., 4295: array is too small to include a terminating null character
- config.nmake: reformat some long lines for readability;
- plugins\Makefile.nmake: clean-deps does nothing: remove it (and usage in top-level makefile);
- dissectors/Makefile.nmake: test to enable packet-rrc.obj target needs to include MSVC2010 ...
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35747 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35729 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35716 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
return statements.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35709 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
keys to have _uint in their names, to match the routines that handle
dissector tables with string keys. (Using _port can confuse people into
thinking they're intended solely for use with TCP/UDP/etc. ports when,
in fact, they work better for things such as Ethernet types, where the
binding of particular values to particular protocols are a lot
stronger.)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35224 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
finally.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35167 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35164 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35163 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
The Lua text string passed to column:set(text) by a dissector will eventually
be reclaimed. This causes the column to display incorrect characters.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34618 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
34598 and 34599.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34602 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
Pull function names to column 0 - except when necessary for autoregistration.
Put function comments before the function.
For readability, put the macros for functions before the function too.
Put class functions before the class.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34599 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34598 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5320 :
Doing a Dumper:close() and then forcing the dumper to be garbage collected will
cause a segfault.
The code attempts to handle the GC that could follow but fails to do it
properly. Assigning Dumper dp = NULL will only have an affect within the scope
of this method... Assumingly this should be a *dp = NULL.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34597 f5534014-38df-0310-8fa8-9805f1628bb7
|
|
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33990 f5534014-38df-0310-8fa8-9805f1628bb7
|