aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua
AgeCommit message (Collapse)AuthorFilesLines
2012-03-15Line-wrap an extremely long comment. Remove trailing white space.Jeff Morriss1-15/+23
svn path=/trunk/; revision=41552
2012-03-08Convert 4-space tabs to spaces.Guy Harris1-238/+238
svn path=/trunk/; revision=41441
2012-02-24CVARSDLL hasn't been used (is undefined) for a while....Bill Meier1-1/+1
svn path=/trunk/; revision=41180
2012-02-16Fix the rest of of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6764 :Jeff Morriss1-34/+39
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
2012-02-14Fix part of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6764 :Jeff Morriss1-13/+13
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
2012-02-14As suggested in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6763 :Jeff Morriss1-1/+1
Give an example of a Pref.range's default value. svn path=/trunk/; revision=41023
2012-01-29Add *.sbr files to the clean target.Anders Broman1-1/+1
svn path=/trunk/; revision=40762
2012-01-25Fix usage of g_ascii_strdown() and g_ascii_strup() - they do *not*Guy Harris1-10/+10
modify the string in place, they return a g_mallocated modified version of the string passed into them. svn path=/trunk/; revision=40727
2012-01-24Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6738 :Jeff Morriss1-1/+1
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
2012-01-13Fix some Dereference of null pointer Warning found by ClangAlexis La Goutte1-1/+1
svn path=/trunk/; revision=40456
2011-11-08packet_info's in_error_pkt is now a bitfield like in_gre_pkt.Chris Maynard1-1/+1
svn path=/trunk/; revision=39764
2011-11-07Do not return from within a TRY/CATCH/ENDTRY because this will make theStig Bjørlykke1-8/+11
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
2011-11-06From Robert G. Jakabosky via bug 5575:Stig Bjørlykke6-18/+68
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
2011-10-31No need to ep_strdup a string to lua_pushstring.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=39684
2011-10-30Don't ep_strdup the protocol name when register a dissector, becauseStig Bjørlykke1-1/+1
this name will be collected when loading a capture file and the name will be gone. svn path=/trunk/; revision=39681
2011-10-25Allow signed integers displayed as BASE_HEX_DEC.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=39571
2011-10-25Added another Lua warning:Stig Bjørlykke1-0/+2
- FT_FRAMENUM can not have a bitmask. svn path=/trunk/; revision=39563
2011-10-25Added Lua error messages when:Stig Bjørlykke1-0/+7
- Adding a INT64/UINT64 field with a value string (currently unsupported). - Trying to display a signed integer as hexadecimal. svn path=/trunk/; revision=39562
2011-10-19Duplicate Lua strings we put into the private_table.Stig Bjørlykke1-2/+7
svn path=/trunk/; revision=39468
2011-10-18Added a private hash table to transport string values between dissectors.Stig Bjørlykke3-0/+161
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
2011-10-18Use PINFO_GET_BOOLEAN for visited.Stig Bjørlykke1-12/+1
svn path=/trunk/; revision=39458
2011-10-13Added some Lua pinfo fields:Stig Bjørlykke1-1/+37
ethertype, fragmented, in_error_pkt, match_uint and match_string. svn path=/trunk/; revision=39407
2011-10-02From Alex Vallee via bug 6346:Stig Bjørlykke1-0/+56
Added Lua TvbRange unicode string methods. svn path=/trunk/; revision=39225
2011-10-02Added register action for loading Lua plugins.Stig Bjørlykke2-6/+10
Removed an unused argument to wslua_init(). svn path=/trunk/; revision=39214
2011-08-25Do case insensitive search for lua scripts to load.Stig Bjørlykke1-3/+1
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
2011-08-25Add a method to fetch protocol description.Stig Bjørlykke1-0/+10
svn path=/trunk/; revision=38736
2011-08-21Add some NSTime methods: add, sub and unm.Stig Bjørlykke1-0/+36
svn path=/trunk/; revision=38648
2011-08-19Introduce NSTime Lua object to handle nstime_t.Stig Bjørlykke6-0/+332
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. svn path=/trunk/; revision=38616
2011-08-11Clarify that Tvb_reported_length_remaining may return -1Jeff Morriss1-1/+1
svn path=/trunk/; revision=38485
2011-08-11From Alexander Stein via ↵Jeff Morriss1-0/+17
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6175 : The attached patch adds the method reported_length_remaining to tvb. svn path=/trunk/; revision=38464
2011-08-10Add a Tvb_reported_len Lua API; this may help satisfy bug 6175.Jeff Morriss1-0/+15
svn path=/trunk/; revision=38461
2011-08-08Load console.lua and dtd-gen.lua from an explicit path.Gerald Combs1-2/+2
svn path=/trunk/; revision=38414
2011-08-07Replace deprecated glib functions.Jörg Mayer1-4/+4
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. svn path=/trunk/; revision=38392
2011-07-04From Michael Mann:Anders Broman1-0/+2
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 svn path=/trunk/; revision=37898
2011-06-28From bug 6057:Stig Bjørlykke1-3/+3
Improved set_color_filter_slot documentation. svn path=/trunk/; revision=37813
2011-06-27From bug 6057:Stig Bjørlykke1-0/+19
Lua API: add support to temporary color filters (10 color slots) svn path=/trunk/; revision=37801
2011-06-25From Tony Trinh via bug 6018:Stig Bjørlykke1-18/+65
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. svn path=/trunk/; revision=37788
2011-06-25Added check for invalid chars in abbrev in ProtoField functions.Stig Bjørlykke1-0/+20
This fixes bug 5569. svn path=/trunk/; revision=37787
2011-06-25Remove "range" from Lua's Pref.range(), as this value shall be fetched from Stig Bjørlykke1-4/+3
the "default". This fixes bug 5896. svn path=/trunk/; revision=37786
2011-06-25From Tony Trinh via bug 5894:Stig Bjørlykke1-1/+1
Added argument validation to Pref.range. svn path=/trunk/; revision=37785
2011-06-23From Tony Trinh via bug 5960:Stig Bjørlykke1-1/+1
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). svn path=/trunk/; revision=37763
2011-06-23Use guint32 internally to store mask.Stig Bjørlykke1-1/+1
This may fix bug 5734. svn path=/trunk/; revision=37762
2011-06-23Rename Tvb_new_real to ByteArray_tvb, as it's a ByteArray function.Stig Bjørlykke1-7/+6
Documentation is generated from code. This fixes bug 5199. svn path=/trunk/; revision=37761
2011-06-23Rename Tvb_tvb to TvbRange_tvb, as it's a TvbRange function.Stig Bjørlykke1-2/+2
Documentation is generated from code. This fixes bug 5006. svn path=/trunk/; revision=37760
2011-06-01Show the plugin paths in Help→About→Plugins. Add a "-G plugins" optionGerald Combs1-3/+3
to TShark which dumps a list of plugins. svn path=/trunk/; revision=37512
2011-05-27Make TVBs opaque for most users.Jeff Morriss2-2/+2
Convert TVB_RAW_OFFSET() and TVB_GET_DS_TVB() into functions. svn path=/trunk/; revision=37422
2011-05-18Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5930 :Jeff Morriss1-2/+5
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. svn path=/trunk/; revision=37239
2011-05-17More eradication of old-style function definitions.Guy Harris1-1/+1
svn path=/trunk/; revision=37216
2011-05-09Comment out dead code.Jakub Zawadzki1-1/+2
svn path=/trunk/; revision=37029
2011-04-26get_host_ipaddr() was returning numeric addresses in host byte orderGerald Combs1-1/+0
and hostnames in network byte order. Have it return everything in network byte order. svn path=/trunk/; revision=36873