aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_pinfo.c
AgeCommit message (Collapse)AuthorFilesLines
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-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
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-02-03From David Carne:Jaap Keuter1-1/+1
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. svn path=/trunk/; revision=35795
2011-01-30Fix a number of msvc level 4 "Unreachable code" warnings by removing unneededBill Meier1-3/+1
return statements. svn path=/trunk/; revision=35709
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-1/+1
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.) svn path=/trunk/; revision=35224
2010-10-22From Regis Cridlig via bug 5326:Stig Bjørlykke1-1/+1
The Lua text string passed to column:set(text) by a dissector will eventually be reclaimed. This causes the column to display incorrect characters. svn path=/trunk/; revision=34618
2010-10-21Aw, man, I knew this code was parsed, but I missed the docbook part. Revert ↵Jeff Morriss1-161/+60
34598 and 34599. svn path=/trunk/; revision=34602
2010-10-21Make the indentation consistent.Jeff Morriss1-60/+161
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-13From Didier Gautheron:Anders Broman1-8/+4
check_col.diff Remove redundant calls to check_col() if it guards only one columns function with one parameter after the column type. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4394 svn path=/trunk/; revision=31519
2009-10-11Make more functions static.Stig Bjørlykke1-2/+2
svn path=/trunk/; revision=30517
2009-09-08Custom column deprecation:Kovarththanan Rajaratnam1-1/+0
We fill out the COL_DSTIDX column by using 'pinfo->dst_idx'. This member is only set by the MDS Header dissector based on 'mdshdr.dstidx'. So remove COL_DSTIDX and migrate to 'mdshdr.dstidx' custom column. svn path=/trunk/; revision=29795
2009-09-08Custom column deprecation:Kovarththanan Rajaratnam1-1/+0
We fill out the COL_SRCIDX column by using 'pinfo->src_idx'. This member is only set by the MDS Header dissector based on 'mdshdr.srcidx'. So remove COL_SRCIDX and migrate to 'mdshdr.srcidx' custom column. svn path=/trunk/; revision=29794
2009-09-08Custom column deprecation:Kovarththanan Rajaratnam1-1/+0
We fill out the COL_RXID column by using 'pinfo->rxid'. This member is only set by the Fibre Channel dissector based on 'fc.rx_id'. So remove COL_RXID and migrate to 'fc.rx_id' custom column. svn path=/trunk/; revision=29793
2009-09-08Custom column deprecation:Kovarththanan Rajaratnam1-10/+9
We fill out the COL_OXID column by using 'pinfo->oxid'. This member is only set by the Fibre Channel dissector based on 'fc.ox_id'. So remove COL_OXID and migrate to 'fc.ox_id' custom column. svn path=/trunk/; revision=29792
2009-08-23Custom columfication:Kovarththanan Rajaratnam1-1/+0
* Deprecate COL_HPUX_DEVID (HP-UX Device ID). Use nettl.devid svn path=/trunk/; revision=29517
2009-08-23Custom columfication:Kovarththanan Rajaratnam1-1/+0
* Deprecate COL_HPUX_SUBSYS (HP-UX Nettl Subsystem). Use nettl.subsys svn path=/trunk/; revision=29516
2009-08-23Custom columfication:Kovarththanan Rajaratnam1-1/+0
* Deprecate COL_CIRCUIT_ID (Circuit ID). Use iax2.call svn path=/trunk/; revision=29515
2009-06-08Changed g_strdup_printf -> ep_strdup_printf.Stig Bjørlykke1-36/+35
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-08Adjusted arguments used in Lua Pref.statictext()Stig Bjørlykke1-7/+7
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-03-13From Jakub Zawadzki (bug 3331):Stig Bjørlykke1-1/+1
g_free() is NULL safe, so we don't need check against it. svn path=/trunk/; revision=27718
2008-12-30From yami <yamisoe@gmail.com>:Balint Reczey1-0/+16
Expose pinfo->private_data to lua interface. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3129 svn path=/trunk/; revision=27132
2008-12-09From Jim Young (bug 3102):Stig Bjørlykke1-1/+1
Trivial patch to fix a structured comment within wslua_pinfo.c svn path=/trunk/; revision=26943
2008-12-05Add access to pinfo->desegment_len and pinfo->desegment_offset to Lua API.Balint Reczey1-4/+20
This enables Lua dissectors to request reassembly via the pinfo struct. svn path=/trunk/; revision=26926
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-3/+3
Do not generate doc items for wslua garbage collectors (they are transparet) svn path=/trunk/; revision=25857
2008-07-26From Balint ReczeyLuis Ontanon1-51/+167
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-2/+2
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
2007-08-02Squelch a warning.Guy Harris1-0/+1
svn path=/trunk/; revision=22442
2007-03-23From Sake Blok:Stephen Fisher1-2/+7
Fix for bug #491: Unexpected frame.time_delta behavior This patch ... fixes bug 491. It does this by changing the behaviour of the frame.time_delta field so it reflects the delta time between captured packets (tshark already did this). To keep the delta time between displayed packets, the field frame.time_delta_displayed is created. svn path=/trunk/; revision=21154
2007-03-21Fixes for: warning: comma at end of enumerator listJörg Mayer1-1/+1
svn path=/trunk/; revision=21084
2007-01-23tvb:range did not appear under Tvb in generated refmanLuis Ontanon1-2/+5
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-10-24Have Lua disabled by default.Luis Ontanon1-1/+3
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-19Fix a typo.Gerald Combs1-111/+111
svn path=/trunk/; revision=19610
2006-10-19- wslua_gui.c:Luis Ontanon1-1/+1
- remove data_ref where it is not used anymore (callbacks won't pass userdata as this ius better done using lua's closures) - have TextWindow:set_editable() using its argument - add wslua_optbool(L,n,d) to pull an optional boolean from the stack - several fixes to docbook generation (now it compiles!) svn path=/trunk/; revision=19608
2006-10-18Add module information for generated docsLuis Ontanon1-1/+4
svn path=/trunk/; revision=19595
2006-09-25Move the Lua interface into epan... (not a plugin anymore).Luis Ontanon1-0/+888
- Rename Tap into Listener - add a mechanism to pass protocols' tap data to the Listener svn path=/trunk/; revision=19319