aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_tvb.c
AgeCommit message (Collapse)AuthorFilesLines
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-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-05-27Make TVBs opaque for most users.Jeff Morriss1-1/+1
Convert TVB_RAW_OFFSET() and TVB_GET_DS_TVB() into functions. svn path=/trunk/; revision=37422
2011-04-21Include config.h only from .c files.Stig Bjørlykke1-0/+4
This avoids a warning building epan.c which includes both config.h and wslua.h (duplicate defines from config.h) svn path=/trunk/; revision=36751
2011-01-30Fix a number of msvc level 4 "Unreachable code" warnings by removing unneededBill Meier1-6/+2
return statements. svn path=/trunk/; revision=35709
2010-10-21Aw, man, I knew this code was parsed, but I missed the docbook part. Revert ↵Jeff Morriss1-226/+142
34598 and 34599. svn path=/trunk/; revision=34602
2010-10-21Make the indentation consistent.Jeff Morriss1-143/+227
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. svn path=/trunk/; revision=34599
2010-01-07Made more generic concat meta method for TvbRange, Int64 and UInt64.Stig Bjørlykke1-52/+15
This way we can concat more objects in one line. svn path=/trunk/; revision=31461
2010-01-06Added concat meta method for TvbRange, Int64 and UInt64.Stig Bjørlykke1-0/+52
svn path=/trunk/; revision=31458
2010-01-06Fix some documentation typos.Stig Bjørlykke1-2/+2
svn path=/trunk/; revision=31453
2010-01-05Added signed integer TvbRange methods.Stig Bjørlykke1-0/+131
svn path=/trunk/; revision=31452
2010-01-05Use correct method names in TvbRange error messages.Stig Bjørlykke1-6/+6
svn path=/trunk/; revision=31450
2010-01-01Add missing stringz tvbrange method.Stig Bjørlykke1-0/+16
This fixes bug 2244. svn path=/trunk/; revision=31398
2009-10-11Make more functions static.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=30517
2009-10-01Removed redundant prototype of Tvb_range().Stig Bjørlykke1-2/+0
svn path=/trunk/; revision=30239
2009-07-08Minor documentation fixBalint Reczey1-3/+3
svn path=/trunk/; revision=29021
2009-06-08From Sam Roberts:Stig Bjørlykke1-22/+94
Added TvbRange:range() From me: Added TvbRange:bitfield() Fixed some indents. svn path=/trunk/; revision=28656
2009-06-08Changed g_strdup_printf -> ep_strdup_printf.Stig Bjørlykke1-17/+37
Use correct modifier for converting gint64 and guint64 to string. Added __gc for Int64 and UInt64. Fixed some indents. svn path=/trunk/; revision=28655
2009-05-10Fix a typo in a comment.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=28327
2009-05-08Adjusted arguments used in Lua Pref.statictext()Stig Bjørlykke1-72/+70
Update Lua documentation: - Fixed Pref.enum, Pref.range and Pref.statictext - Fixed the equivalent comment for pinfo.cols - Do not have a comment star (*) in the documentation - Be consistent and start all sentences with a capital letter svn path=/trunk/; revision=28304
2009-01-27Corrected some defines. Use defines when appropriate.Stig Bjørlykke1-18/+18
Document last argument to DissectorTable.new(). svn path=/trunk/; revision=27309
2009-01-27Fixed some typos.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=27308
2008-10-31Document the new lua functions.Stig Bjørlykke1-0/+2
svn path=/trunk/; revision=26660
2008-10-31Provide TvbRange:{offset|len}() instead of TvbRange.{offset|len}.Balint Reczey1-81/+27
Write access to offset and len from Lua is gone, too. This fixes bug 2243. svn path=/trunk/; revision=26657
2008-09-16Fix compilation under Windows (uint -> guint).Gerald Combs1-13/+13
svn path=/trunk/; revision=26217
2008-09-16Adds 64 bit integer handling to Lua interface.Balint Reczey1-4/+125
Fixes bug 2750. svn path=/trunk/; revision=26216
2008-09-16Fix for bug 1965:Balint Reczey1-3/+14
Fix ByteArray append() and set_size() svn path=/trunk/; revision=26215
2008-08-05luis.ontanon@gmail.com => luis@ontanon.orgLuis Ontanon1-1/+1
svn path=/trunk/; revision=25937
2008-07-29Try to get the docbook buildbot runnig.Luis Ontanon1-1/+1
Do not generate doc items for wslua garbage collectors (they are transparet) svn path=/trunk/; revision=25857
2008-07-26From Balint ReczeyLuis Ontanon1-67/+168
Fix for https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2453 The patch fixes the problem by extending the original "outstanding stuff" approach. Now the pointer itself won't be NULLified, instead we track the pointers with their expiry state in structs in the outstanding_stuff list. The Lua objects refers to those structs instead of the actual pointers and checks the expiry state of the pointers before accessing them. The pointers are marked expired when the dissection of the frame is finished and the allocated struct is freed by Lua's garbage collector. If the garbage collector hits the struct when it holds a not expired pointer, it marks it as expired (that means we don't have any object in Lua referring to the pointer) and the struct will be freed at the end of the dissection of the frame. this is for the 1.0 branch svn path=/trunk/; revision=25845
2008-04-25From: Márton Németh:Jaap Keuter1-6/+6
The luaL_reg structure consists of two pointers: char* and a pointer to a function. The last entry should also reflect this: it should be { NULL, NULL } instead of { 0, 0 }. svn path=/trunk/; revision=25175
2008-04-12From Marton Nemeth (bug 2447):Stig Bjørlykke1-1/+1
In help the not all of the following chapters begins with uppercase: 10.4.1. saving capture files 10.4.2. obtaining dissection data 10.4.3. GUI support 10.4.4. post-dissection packet analysis 10.4.5. obtaining packet information 10.4.6. functions for writing dissectors 10.4.7. adding information to the dissection tree 10.4.8. functions for handling packet data 10.4.9. Utility Functions svn path=/trunk/; revision=24933
2008-04-10 fix http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2448Luis Ontanon1-27/+27
Tvb:xxx() functions are unpropperly named Tvb:get_xxx in the wsluarm svn path=/trunk/; revision=24887
2007-10-16From tmiller@hcjbtech.org : Spelling error on GDS DB protocol dissector: ↵Sake Blok1-5/+5
"Buffer lenght:" (recursively grepped through the source and corrected all occurences, even the ones just in comments) svn path=/trunk/; revision=23211
2007-04-12From: Balint ReczeyLuis Ontanon1-0/+25
I would like to handle the rare situation of Little Endian encoded IP addresses, so i added a function which reads the address with tvb_get_ipv4(), then swaps the bytes before SET_ADDRESS(). svn path=/trunk/; revision=21397
2007-04-11have tvbrange:get_ipv4() not modifying the byte order of the extraced data.Luis Ontanon1-1/+1
have Proto.new() registering the protocol by name. svn path=/trunk/; revision=21385
2007-01-27Fix docbook documentationLuis Ontanon1-11/+5
svn path=/trunk/; revision=20577
2007-01-24Fix compilation (under Windows, at least).Gerald Combs1-111/+111
svn path=/trunk/; revision=20541
2007-01-23add range to the metatable of Tvb.Luis Ontanon1-0/+1
svn path=/trunk/; revision=20540
2007-01-23tvb:range did not appear under Tvb in generated refmanLuis Ontanon1-6/+13
pinfo.curr_proto appeared as pinfo.match pinfo.columns in the refman was pinfo.cols in lua (now it is both in lua and in refman) svn path=/trunk/; revision=20539
2006-12-22fix a typo.Luis Ontanon1-2/+1
svn path=/trunk/; revision=20193
2006-12-22- Fix the name of the disable_lua variable.Luis Ontanon1-1/+8
== improve documentation make-doc.pl ( make doc ) generates an almost complete reference manual. svn path=/trunk/; revision=20192
2006-10-24Have Lua disabled by default.Luis Ontanon1-56/+97
Add more documentation to the code. change make-dco.pl so that it creates more readable docbook output. This should be copied over to 0.99.4 svn path=/trunk/; revision=19670
2006-10-18Add module information for generated docsLuis Ontanon1-1/+3
svn path=/trunk/; revision=19595
2006-09-25Move the Lua interface into epan... (not a plugin anymore).Luis Ontanon1-0/+738
- Rename Tap into Listener - add a mechanism to pass protocols' tap data to the Listener svn path=/trunk/; revision=19319