aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
AgeCommit message (Collapse)AuthorFilesLines
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-21Fix for bug 756. Handle CR as part of separator as well. Jaap Keuter1-2/+2
svn path=/trunk/; revision=17359
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-14mgcp-plugin -> plugin-mgcp.Gerald Combs1-1/+1
svn path=/trunk/; revision=17304
2006-02-14Experiment with a somewhat generic packet-to-plugin wrapperJörg Mayer6-52/+68
svn path=/trunk/; revision=17300
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
2006-02-08Include glib.h, so FALSE is defined when compiling statically.Jörg Mayer1-0/+1
svn path=/trunk/; revision=17218
2006-02-08Changed how files are loaded.Luis Ontanon1-39/+67
load $ETH/init.lua if it exists if we are not runninig on special privileges load $USER/init.lua and then all the files given with cmd line option -X lua_script:file.lua svn path=/trunk/; revision=17210
2006-02-07changes to build lua plugin with MSVC6:Lars Roland4-14/+70
- nmake makefile for lua plugin added. - declare variables at the beginning of a function. - proto_reg_handoff_lua was removed, remove remaining calls, too. - missing functions to libethereal.def added. add lua plugin to installer, if available. svn path=/trunk/; revision=17196
2006-02-07init_routines was moved back to globals.Luis Ontanon1-1/+1
svn path=/trunk/; revision=17192
2006-02-07I Noticed a crash when registering a tap with filter during handoff (that's ↵Luis Ontanon2-46/+9
when I had lua starting) trying to see if I could move dfilter_init() before protocol registration I discovered register_final_registration_routine() neat! Lua protocols won't need a handoff routine anymore!! svn path=/trunk/; revision=17191
2006-02-06+ gui_enabled()Luis Ontanon3-10/+25
* make the gui routines call-able since the first line of the script svn path=/trunk/; revision=17190
2006-02-06svn eol-style and keywordsJörg Mayer1-1/+1
svn path=/trunk/; revision=17183
2006-02-06Lua uses the simple dialogLuis Ontanon4-1/+126
svn path=/trunk/; revision=17173
2006-02-05Add an example of tap,text window and menu usageLuis Ontanon1-0/+58
svn path=/trunk/; revision=17167
2006-02-05* move all the tap functions to lua_tapLuis Ontanon5-198/+258
* change the way taps work (docs coming) * add an at_close method to the textwindow that allows the user to set a callback function to be called when the window is closed svn path=/trunk/; revision=17166
2006-02-05Allow lua to register menu itemsLuis Ontanon3-0/+70
svn path=/trunk/; revision=17162
2006-02-04Propset eol-style and Id for allLuis Ontanon1-3/+20
lua_gui.h has a licence svn path=/trunk/; revision=17152
2006-02-04Give lua a minimal gui.Luis Ontanon5-1/+150
svn path=/trunk/; revision=17150
2006-02-03* packet-lua.hLuis Ontanon6-392/+537
* add a shiftC() function to every class for extracting values from the stack * lua_pinfo.c * fix pinfo.dst pinfo.dl_dst pinfo.dl_src pinfo.net_dst pinfo.net_src * lua_tree.c * ProtoTree_add_item_any() changed to use TvbRanges, a more handy way to give it optional arguments * lua_tvb.c * get ByteArray up and running * create TvbRange class and use it to access the tvb (this class takes care of checking bounds so that exceptions are not thrown) svn path=/trunk/; revision=17146
2006-02-01From Eric Hultin:Anders Broman8-2/+1972
This patch adds support for dissection of the DCC packet as defined in CableLab's (http://www.cablelabs.com/) DOCSIS Radio Frequency Interface (RFI) specification. The latest version of this specification is currently available at http://www.cablemodem.com/specifications/specifications20.html . Packet formats for DCC are defined in sections 8.3.20 (DCC-REQ), 8.3.21 (DCC-RSP), and 8.3.22 (DCC-ACK) of the RFI specifications (referencing version CM-SP-RFIv2.0-I10-051209). In addition, this patch adds support for the DCD packet as defined in the DOCSIS Set-Top Gateway (DSG) Specification. The latest version of this specification is currently available at http://www.cablemodem.com/specifications/gateway.html . The format of the DCD packet is defined in section 5.3.1 of the DSG specification (referencing version CM-SP-DSG-I06-051209). svn path=/trunk/; revision=17138
2006-01-31It was hard.. but at the end I won (or at least i believe so...).Luis Ontanon2-16/+18
After install hello_world.lua works. svn path=/trunk/; revision=17137
2006-01-29Warning fixes: no ';' at the end of functions.Jörg Mayer6-80/+82
svn path=/trunk/; revision=17124
2006-01-29* packet-lua.hLuis Ontanon3-20/+39
* add an isXxx() declaration * packet-lua.c * move the dissectors, handoffs and inits tables to the registry * lua_proto.c * new_protocol is now called Protocol * move the dissectors, handoffs and inits tables to the registry svn path=/trunk/; revision=17117