aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/lua
AgeCommit message (Collapse)AuthorFilesLines
2006-03-30Fix FieldInfo and add an attribute for the filter name.Luis Ontanon1-13/+56
svn path=/trunk/; revision=17774
2006-03-30TextWindow:Luis Ontanon1-4/+92
- add buttons - make editable svn path=/trunk/; revision=17773
2006-03-29Get elua to build on IA32Jaap Keuter1-1/+1
svn path=/trunk/; revision=17755
2006-03-28Fix compilation under Windows.Gerald Combs2-51/+51
svn path=/trunk/; revision=17751
2006-03-27elua_field.c was added to $MODULES but not to $OBJECTSLuis Ontanon1-0/+1
svn path=/trunk/; revision=17749
2006-03-27Major properties cleanupJaap Keuter3-0/+0
svn path=/trunk/; revision=17747
2006-03-27This worked because I've edited elua_field.h as .c and the only thing in ↵Luis Ontanon1-4/+395
elua_field was #include "elua_field.h" This is the actual elua_field.c svn path=/trunk/; revision=17743
2006-03-27Improve Field Extraction by returning a handle to a field_info instead of ↵Luis Ontanon5-190/+14
just the value. svn path=/trunk/; revision=17742
2006-03-19Add pinfo.lo and pinfo.hi been thise the lower and the higher between ↵Luis Ontanon1-9/+55
pinfo.src and pinfo.dst. Do not faill if Columns is NULL, as it can normally be NULL. svn path=/trunk/; revision=17677
2006-03-16we don't need to "ban" the print call any longerUlf Lamping1-11/+0
svn path=/trunk/; revision=17652
2006-03-13Use checkTextWindow instead of shiftTextWindow to fetch the window object ↵Luis Ontanon1-15/+38
from the stack, shiftXxx will happily (and rightfully) return a null pointer without an error. svn path=/trunk/; revision=17615
2006-03-13Expert info is going to be used in runtime.Luis Ontanon1-67/+8
For the sake of speed use integers instead of strings to then be converted into integers. svn path=/trunk/; revision=17609
2006-03-12I Hope this worksLuis Ontanon1-1/+4
svn path=/trunk/; revision=17603
2006-03-12Move make-init-lua.pl and family to plugins/lua and have init.lua installed ↵Luis Ontanon3-1/+189
in the right place svn path=/trunk/; revision=17602
2006-03-12reenable TreeItem,Luis Ontanon2-10/+16
shiftXXX() was broken svn path=/trunk/; revision=17599
2006-03-12Protocols are now invoked.Luis Ontanon1-9/+8
svn path=/trunk/; revision=17598
2006-03-11Remove debug code...Luis Ontanon1-10/+0
svn path=/trunk/; revision=17595
2006-03-11Protocols register OK.Luis Ontanon4-51/+82
svn path=/trunk/; revision=17594
2006-03-09Add lua:s nmakefile.nmake to the distribution.Anders Broman1-1/+2
svn path=/trunk/; revision=17552
2006-03-07Remove strhash test code from lua...Luis Ontanon1-29/+0
svn path=/trunk/; revision=17488
2006-03-07- merge SubTree, ProtoTree and ProtoItem into a single TreeItem class.Luis Ontanon9-414/+278
- By the same token get rid of ProtoFieldArray having Proto.fields attribute been a lua "Array" containing fields. (still untested, and probably broken) svn path=/trunk/; revision=17486
2006-03-05+ retap_packets()Luis Ontanon1-0/+7
svn path=/trunk/; revision=17463
2006-03-05+ retap_packets()Luis Ontanon2-26/+6
+ complete gtk TextWindow + fix elua_dumper + fix elua_proto svn path=/trunk/; revision=17462
2006-03-02- make them work as the got broken while docommenting them.Luis Ontanon2-3/+3
svn path=/trunk/; revision=17453
2006-03-02- remove some warnings from the windows compileLuis Ontanon3-28/+51
- some more Tap documentation svn path=/trunk/; revision=17442
2006-03-01Add Lua support by default for Win32. Fix some compilation problems.Gerald Combs2-16/+20
Add Lua information to the version paragraph. svn path=/trunk/; revision=17440
2006-02-27- Some more commentsLuis Ontanon2-19/+23
svn path=/trunk/; revision=17415
2006-02-25The semantics of luaL_checkudata() change between 5.0 and 5.1 (the later ↵Luis Ontanon3-11/+13
triggers an error). make sure isXxx() functions do not trigger an error, we want them to return not to pop the stack back to the lua caller. svn path=/trunk/; revision=17411
2006-02-25- elua_protoLuis Ontanon3-147/+261
- add doComments - fix an error in DissectorTable_remove - reorganize DissectorTable_try - elua.h squelch some warnings - Makefile.nmake - replace the $^ macro with the targets (i.e. do what nmake was supposed to do) - move the doc target into the conditional part svn path=/trunk/; revision=17406
2006-02-24I changed some vanames and did not compile...Luis Ontanon2-5/+5
svn path=/trunk/; revision=17399
2006-02-23- More "docOMMentation" of the APILuis Ontanon4-196/+402
- also supress Address__ge and Address_gt because re-reading the ref manual I noticed that they are suplerfluous (Lua assumes that a > b is equivalent to b < a, which in most cases (as this) it does) - have elua_makedoc.pl hanlde docomments in more than one line and after the line where the entity s defined. svn path=/trunk/; revision=17382
2006-02-23Delete docs in maintainer-clean targetJörg Mayer1-1/+2
svn path=/trunk/; revision=17379
2006-02-22Forgot...Luis Ontanon1-0/+128
Elua functions in elua.c moved to this new file. svn path=/trunk/; revision=17375
2006-02-22- More documentation embeded in the source code.Luis Ontanon11-240/+216
- Changed some Macros - Have dump:close NULLyfing the boxed object so that no futher operations are performed on a dumper once is closed. - Check if elua_register.h has changed and avoid overwriting it if it hasn't changed to avoid unnecessary compilations. svn path=/trunk/; revision=17374
2006-02-22elua_register.h wasn't built automaticallyJörg Mayer1-2/+3
svn path=/trunk/; revision=17371
2006-02-21- rename all the c filesLuis Ontanon13-412/+705
- have elua_makereg.pl generating the declaration and registration Macros for each module - start of elua_makedoc.pl that should generate the Reference Manual from the code. svn path=/trunk/; revision=17362
2006-02-19- Use lua 5.1Luis Ontanon9-210/+72
- Compress *_register() functions svn path=/trunk/; revision=17354
2006-02-18rename plugin.c to lua_plugin.cLuis Ontanon2-1/+1
svn path=/trunk/; revision=17348
2006-02-18Add dual versionLuis Ontanon1-1/+9
svn path=/trunk/; revision=17347
2006-02-18Prepare for lua 5.1Luis Ontanon1-4/+1
svn path=/trunk/; revision=17346
2006-02-17- Make sure the right globals are set before invoking user tap caallbaccksLuis Ontanon2-6/+9
- Have Dumper.new_for_current() and dumper:dump_current() work. svn path=/trunk/; revision=17336
2006-02-17- avoid the user been flooded with report_error windows if there's an error ↵Luis Ontanon3-7/+39
in a tap callback - fix args of Dumper:new_for_current - add a semicolon after LUA_CLASS_DECLARE(PseudoHeader,PSEUDOHEADER) that caused an error (Lesson: Even if trivial one should test changes, there's always a typo arround the corner) svn path=/trunk/; revision=17329
2006-02-17- pass the tvb too to tap packet callbacksLuis Ontanon6-2/+361
- Dumper (an interface to Wiretap dumpers) svn path=/trunk/; revision=17328
2006-02-16Have Field extractors being defined while reading the body of the script ↵Luis Ontanon2-49/+68
instead that during initialization. Change their semantics too: ip_src_f = Field("ip.src") function tap.packet(pinfo) ip_src = ip_src() end svn path=/trunk/; revision=17315
2006-02-15Protect The tree and The tvb from being used outside their scopeLuis Ontanon4-2/+19
svn path=/trunk/; revision=17307
2006-02-15- protect proto_items and proto_trees from being used out of their scopeLuis Ontanon2-7/+22
- fix the severity variables svn path=/trunk/; revision=17306
2006-02-15- protect column, columns and pinfo from dereferencing invalid data saved by ↵Luis Ontanon5-42/+62
the user. - columns live for less than a packet's time, use ep_alloc not g_malloc - tvbranges are ephemeral too doc/ is to remain as a placeholder for upcoming docs. lualib/ is to be deleted (if needed it should go in trunk) but it appears that once I added if I do not check it in I cannot delete it. svn path=/trunk/; revision=17305
2006-02-14- fix a sure crash after an error in lua code lua_tap_draw.Luis Ontanon4-62/+113
- make sure no reference to a Tvb in lua is used after the lua dissector has returned. svn path=/trunk/; revision=17296
2006-02-13- disable printLuis Ontanon2-34/+142
- add a log facility to lua (so far just prints to stderr) - add settings to disable lua even if installed, to load or not to load user scripts when superuser - create a default /usr/local/share/ethereal/init.lua that blocks all the io/system calls when running as superuser svn path=/trunk/; revision=17290
2006-02-08* DissectorTable.add does not allow to add lua protocols that don't have a ↵Luis Ontanon5-43/+66
dissector. * ProtoFiled.uint checks the base to be a valid value to avoid an assertion in proto.c while registering the field array * save one lua table lookup by using a reference to the dissectors table instead of looking for it by name * set data_hanlde's value to avoid a crash while invoking it. * make the TvbRange of Tree:add_item really optional. svn path=/trunk/; revision=17220