Commit Graph

968 Commits

Author SHA1 Message Date
Anders Broman c3d429d816 Remove entries for the lua plugin as it's not used any more.
svn path=/trunk/; revision=19441
2006-10-05 21:37:45 +00:00
Anders Broman 2747f923e0 Start to make the output from the dissector more like the actual
data.

svn path=/trunk/; revision=19437
2006-10-04 22:49:40 +00:00
Ulf Lamping 0dd1f103cb we don't need to .. the dirs for the clean targets here
svn path=/trunk/; revision=19381
2006-09-30 13:25:05 +00:00
Ulf Lamping e4d5b387d9 "Pluggable custom makefile"
A custom plugin (not yet to be released to the public) can be added to Makefile.nmake easily. But this has a drawback:
The modified Makefile.nmake appears as a modified file in the commit list and in generated patches (this annoyed me for years).

To solve this I've added a plugin like mechanism which calls a Custom.nmake file for each target (if the file is existing). I've also added a Custom.nmake.example for a quick start.

I don't know how to do this for the Makefile.am, so I leave this as an exercise for the interested reader ;-)

svn path=/trunk/; revision=19377
2006-09-30 09:45:51 +00:00
Anders Broman 4647b593ee Use #defines from packet-ber.h rather than asn1.h change default ports to Zero.
svn path=/trunk/; revision=19367
2006-09-29 21:27:58 +00:00
Luis Ontanon c8a95a0548 Lua 5.1.1 for windows
svn path=/trunk/; revision=19324
2006-09-26 03:31:00 +00:00
Luis Ontanon 6462d05044 Move the Lua interface into epan... (not a plugin anymore).
- Rename Tap into Listener
- add a mechanism to pass protocols' tap data to the Listener


svn path=/trunk/; revision=19319
2006-09-25 01:09:00 +00:00
Anders Broman 57bdacea28 NAME can also contain '_'
svn path=/trunk/; revision=19160
2006-09-06 05:22:05 +00:00
Anders Broman 33d4a980da Always dissect SDP info to set up RTP conversation.
svn path=/trunk/; revision=19138
2006-09-04 20:36:52 +00:00
Anders Broman 6477c4e167 Comment out debug code.
svn path=/trunk/; revision=19126
2006-09-02 23:21:59 +00:00
Anders Broman db40553e30 Packages can have digits and '/' in their names...
svn path=/trunk/; revision=19124
2006-09-02 16:56:22 +00:00
Anders Broman a775ac3210 Remove some extra output for MediaDescriptor.
svn path=/trunk/; revision=19122
2006-09-02 16:05:03 +00:00
Anders Broman fd03d7f315 Fix http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1080.
svn path=/trunk/; revision=19121
2006-09-02 15:50:24 +00:00
Anders Broman 0ac19b7c68 From Alejandro Vaquero:
- The current "/plugin/listen_rtp" directory should be removed from the 
source

svn path=/trunk/; revision=19087
2006-08-30 19:27:54 +00:00
Ulf Lamping 161d7695eb (slightly) further dissection of the Option (Organizationally specific) block
svn path=/trunk/; revision=18997
2006-08-22 19:43:38 +00:00
Ulf Lamping c91dd2c6c2 fix TLB block alignment to be compatible with the current MRP draft. Would be nice if included in the 0.99.3
svn path=/trunk/; revision=18996
2006-08-22 19:42:04 +00:00
Gerald Combs ba718fb33c Bail out of an infinite loop. Fixes bug 1048. (This was introduced after
the 0.99.3 trunk was created.)  Remove a couple of static buffers.  Fix up
whitespace.

svn path=/trunk/; revision=18995
2006-08-22 15:55:42 +00:00
Anders Broman 43d1b4c099 Dissect some more H.245 messages in MEGACO
svn path=/trunk/; revision=18966
2006-08-20 21:18:43 +00:00
Anders Broman 84112e7167 Improve parsing a bit and correctly dissect errorDescriptor in Reply.
svn path=/trunk/; revision=18960
2006-08-19 21:42:25 +00:00
Jörg Mayer db4cdf2555 rudp used a port that a) collides with afs and b) violates
the port requirements from the draft rfc.
Make the portnumber a configureable variable and set it to 0
by default.

svn path=/trunk/; revision=18861
2006-08-10 01:59:41 +00:00
Ulf Lamping bd807d4b69 several minor fixes and enhancements to the dissection
svn path=/trunk/; revision=18854
2006-08-08 21:28:14 +00:00
Gerald Combs 20093fdaa4 snprintf -> g_snprintf. Fix up whitespace.
svn path=/trunk/; revision=18776
2006-07-20 21:29:45 +00:00
Anders Broman aa98f8dadd From Bálint Réczey
- Added support for versioned lua libnames to aclocal.m4
- create generated elua_register.h from Makefile

svn path=/trunk/; revision=18769
2006-07-19 19:20:58 +00:00
Ulf Lamping 2981e4022a remove some warnings (2nd try)
svn path=/trunk/; revision=18635
2006-07-01 15:14:19 +00:00
Ulf Lamping 66318ef7e1 remove some "signedness" warnings
svn path=/trunk/; revision=18633
2006-07-01 12:15:37 +00:00
Luis Ontanon 8c8a4ce877 Some improvements to the Lua plugin:
- Makefile.am fix: elua_register.h generation + checking serialized
- ProtoField.new(..) parameter parsing fix and changes
- enabling gui_enabled() function in Lua (typo fix, thanks to Tamas Regos)


svn path=/trunk/; revision=18611
2006-06-29 13:49:56 +00:00
Ulf Lamping 95279cb92c remove a "differ in signedness" warnings
svn path=/trunk/; revision=18607
2006-06-29 08:16:57 +00:00
Ulf Lamping b41b729b2f remove some "unused parameter" warnings
svn path=/trunk/; revision=18606
2006-06-29 08:15:07 +00:00
Anders Broman 40cbc01b87 From Alejandro Vaquero:
The "listen_rtp" plugin that allows to listen audio RTP 
conversations.

    The plugin is integrated to the "Voip Calls" feature. There is a new 
"listen" button in the "Voip Calls" that once the calls are selected and 
the "listen" is clicked, a new window will open. In this window you can 
change the simulated jitter buffer to be used for decoding the RTP 
packets. In this first implementation, only a static jitter buffer can 
be simulated. Then pressing "decode" will decode all the RTP and 
generate the graphical view of the audio channels. From there you can 
select up to two channels at the same time (to be played in the left and 
right channels) and then play, pause, stop,etc.....ok, the attached 
screenshot it is self explanatory (hopefully).
    The only codecs available from now are G711u and G711a law.

    The PortAudio (www.portaudio.com) library is used to play audio. 
This is an open source cross-platform Audio library. I have tested this 
on Windows XP  and in a linux FC4.

NOTE: only the plugin soure files checked in at this time.

svn path=/trunk/; revision=18588
2006-06-27 21:44:07 +00:00
Guy Harris c54111c388 Put the sequence number in for a response, if present.
svn path=/trunk/; revision=18568
2006-06-24 02:41:25 +00:00
Ulf Lamping 1896e7021d squelch some compiler warnings
svn path=/trunk/; revision=18560
2006-06-23 18:03:40 +00:00
Jaap Keuter c8d01e1af1 One warning from GCC:
packet-sbus.c:634: warning: 'sbus_web_seq' is used uninitialized in this function

svn path=/trunk/; revision=18554
2006-06-23 06:38:46 +00:00
Ulf Lamping a016d9ee45 fix a (correct) compiler warning
svn path=/trunk/; revision=18548
2006-06-22 19:17:43 +00:00
Ulf Lamping d2b72027b0 add various new dissections, enhancements to the existing dissections and update things to current spec, ...
Still incomplete, but a lot better than before :-)

svn path=/trunk/; revision=18536
2006-06-21 20:10:38 +00:00
Ulf Lamping 1d51934de2 add an expert info if a capture file contains some (yet) undecoded portions
svn path=/trunk/; revision=18534
2006-06-21 18:35:39 +00:00
Ulf Lamping 4f83154239 detect the PROFINET OUI correct if the multicast bit is set
svn path=/trunk/; revision=18528
2006-06-21 07:28:56 +00:00
Jaap Keuter 1205ee2a14 From Christian Durrer:
I hope this is the right place to send a patch for a new dissector
plugin. The telegram it dissects are for the communication between PLCs
(Programmable logic controller) from the company Saia Burgess Controls
Ltd. (http://www.start-controls.com, http://www.saia-burgess.com or
http://www.sbc-support.ch). The protocol is named Ether-S-Bus (the PLCs
are called PCD2, PCD3, PCD4).

svn path=/trunk/; revision=18526
2006-06-21 06:31:06 +00:00
Anders Broman 764e3ac167 New rutine tvb_format_text_wsp() which will change "whiite space" characters to space
before output.

svn path=/trunk/; revision=18519
2006-06-19 15:53:03 +00:00
Anders Broman 0eb577e17b From Eugene Tarlovskij:
After synchronization with wireshark repository I see that the patch is applied in the incorrect way. 
I send you another patch to fix this issue.

svn path=/trunk/; revision=18518
2006-06-19 15:43:17 +00:00
Anders Broman eb83c826ca From Tarlovskij Eugene:
- MEGACO dissector fails to decode observedevents descriptor 
- BoundsError exception in text MEGACO packets

svn path=/trunk/; revision=18504
2006-06-17 16:13:25 +00:00
Ronnie Sahlberg 62e32390b5 ethereal to wireshark changes
svn path=/trunk/; revision=18500
2006-06-17 12:07:49 +00:00
Guy Harris 1af7caeeb1 Squelch a (valid) compiler warning.
Clean up indentation a bit.

svn path=/trunk/; revision=18481
2006-06-16 07:15:03 +00:00
Ulf Lamping f1f0e294b4 (on behalf of the PROFIBUS Nutzerorganisation e.V. Deutschland):
add Media Redundancy and Media Redundancy Realtime Protocol dissectors (PN-MRP and PN-MRRT)

svn path=/trunk/; revision=18454
2006-06-13 18:26:49 +00:00
Ulf Lamping 7da210b418 use FT_GUID instead of FT_STRING at appropriate fields
svn path=/trunk/; revision=18439
2006-06-12 19:36:58 +00:00
Jörg Mayer 299ac5e8bc remove plugin.c in distlclean
svn path=/trunk/; revision=18312
2006-06-02 06:53:30 +00:00
Gerald Combs 8958bab6de Tethereal/tethereal -> TShark/tshark.
svn path=/trunk/; revision=18268
2006-05-31 17:38:42 +00:00
Gerald Combs b15974d094 libethereal -> libwireshark. idl2eth -> idl2wrs. There are a _lot_ of
changes here.  It compiles OK on OS X, but hasn't been tested anywhere else.

svn path=/trunk/; revision=18260
2006-05-31 00:23:01 +00:00
Anders Broman 5e85b35506 Ethereal->Wireshark
svn path=/trunk/; revision=18239
2006-05-29 16:32:08 +00:00
Anders Broman db57e7b724 Ethereal->Wireshark
svn path=/trunk/; revision=18231
2006-05-28 16:32:49 +00:00
Anders Broman 1814821adc From Martin Mathieson:
- Many DCT2000 protocols can be embedded within an IP primitive 
message.  Add a heuristic to see if we can find the protocol payload 
within in IP primitive message, and look for an ethereal dissector 
matching the DCT2000 protocol name (this is useful for simple protocol 
testing where no physical links are involved)
- Make some more of these protocols (diameter, http, mgcp) findable by name
- Adds protocol 'variant' number to stub and dissector
- Break the duplicated writing of the stub header out into a separate 
function

svn path=/trunk/; revision=18212
2006-05-23 05:48:00 +00:00
Ronnie Sahlberg f0b33a4789 ethereal->wireshark updates
svn path=/trunk/; revision=18206
2006-05-22 08:14:01 +00:00
Ronnie Sahlberg 89f022b12b name change
svn path=/trunk/; revision=18197
2006-05-21 05:12:17 +00:00
Guy Harris 4a4c56ccff Use $(PLUGIN_NAME) wherever possible, so that we have a Makefile.nmake
that could be used with any plugin.  (It'd be nice if there were some
way to do that with Makefile.am, but automake doesn't seem to like
macro names being used in the definitions of its magic macros.)

svn path=/trunk/; revision=18150
2006-05-14 22:25:07 +00:00
Gerald Combs c23899620f It looks like g_fopen() in the version of GLib that we ship with Windows
sets errno to 0 when we can't open a file.  This resurrected the annoying
"C:\Program Files\Ethereal\asn1/default.tt" error in the ASN.1 plugin,
since we depended on errno being set to ENOENT.  Move some logic around
to account for this.

svn path=/trunk/; revision=18073
2006-05-02 18:21:42 +00:00
Ulf Lamping 4674161ed0 add some higher packet length values
svn path=/trunk/; revision=18021
2006-04-27 22:13:29 +00:00
Ulf Lamping 4b4eba7993 minor enhancements
svn path=/trunk/; revision=18009
2006-04-26 20:13:33 +00:00
Guy Harris e198ded297 Include non-dissector support files in the source.
svn path=/trunk/; revision=17992
2006-04-25 08:22:55 +00:00
Guy Harris ac4738698f Try using the new generic plugin Makefile.nmake.
svn path=/trunk/; revision=17970
2006-04-23 18:54:32 +00:00
Guy Harris 44028fcc04 Use the PLUGIN_NAME macro, to see if we can minimize the number of
changes needed to Makefile.nmake for a new plugin.

svn path=/trunk/; revision=17967
2006-04-23 17:45:22 +00:00
Guy Harris 7bd22c75c1 "irda", not "ira".
svn path=/trunk/; revision=17966
2006-04-23 09:13:18 +00:00
Guy Harris 5e49264181 Resolve conflicts.
svn path=/trunk/; revision=17965
2006-04-23 08:23:49 +00:00
Guy Harris 77d66dd3d0 Registration routines can't be static - they're called from plugin.c
svn path=/trunk/; revision=17964
2006-04-23 03:15:51 +00:00
Guy Harris c0ab4fac46 Add the objects built from DISSECTOR_SUPPORT_SRC.
svn path=/trunk/; revision=17963
2006-04-23 02:14:11 +00:00
Guy Harris 5199671441 Convert most other plugin dissectors to use the make-dissector-reg
scripts.

svn path=/trunk/; revision=17961
2006-04-22 20:26:16 +00:00
Ulf Lamping a70e3c548c (on behalf of the PROFIBUS Nutzerorganisation e.V. Deutschland):
add Precision Time Control Protocol dissector (PTCP)

svn path=/trunk/; revision=17930
2006-04-20 19:49:12 +00:00
Guy Harris fd1cec8917 Rename "make-reg-dotc" to "make-dissector-reg", and do the same for the
Python versions, as it no longer makes only "register.c", it can also
make a "plugin.c" file for a plugin.

When making "plugin.c", there's no need to include "register.h", as it's
not defining any functions declared there.

svn path=/trunk/; revision=17919
2006-04-20 02:21:28 +00:00
Guy Harris 4a67045746 Fix a typo.
svn path=/trunk/; revision=17918
2006-04-19 21:43:48 +00:00
Guy Harris 4b71578604 Fix the register and register-handoff routines to have the standard
format, so the script that generates plugin.c will generate code to call
them.

svn path=/trunk/; revision=17917
2006-04-19 21:42:39 +00:00
Anders Broman a70b907c4a Handle 64bits signed/unsigned integers and get rid of some extra LF:s.
svn path=/trunk/; revision=17911
2006-04-19 18:59:29 +00:00
Guy Harris a7852884e8 register.c and register.obj are no longer used.
svn path=/trunk/; revision=17908
2006-04-19 16:02:09 +00:00
Guy Harris 8379e98ebd The rule makes plugin.c, not register.c.
svn path=/trunk/; revision=17907
2006-04-19 10:44:11 +00:00
Guy Harris 0c873b006a Update comments.
Fix the Makefile.nmake files to pass the output type argument to
make-reg-dotc or make-reg-dotc.py.

Make tools/make-reg-dotc executable.

svn path=/trunk/; revision=17904
2006-04-19 09:52:23 +00:00
Guy Harris 008d0d6c00 Have make-reg-dotc and make-reg-dotc.py generate either a register.c for
libetheral or a plugin.c for a plugin, rather than having plugin.c for a
dissector call the routines from register.c.  This means we don't ahve
multiple register_all_protocols() and register_all_protocol_handoffs()
routines, and that all the plugin boilerplate is automatically
generated.

svn path=/trunk/; revision=17903
2006-04-19 09:26:16 +00:00
Anders Broman 2301071bda From W.Borgert:
this patch leads to a more condensed representation of strings in the GIOP module, e.g. in Parlay instead of having:

length = 42
TpAddress_AddrString = sip:anyone@somebody.thehost.whose.es:5432

you have now:

TpAddress_AddrString (42) = sip:anyone@somebody.thehost.whose.es:5432

The former was not as concise, if you have a lot of strings (as in CosNaming) and it was not clear whether the protocol had a explicit field named "length" in the IDL.

svn path=/trunk/; revision=17902
2006-04-19 05:17:46 +00:00
Anders Broman 6cb8d805f0 Fix Bug http://bugs.ethereal.com/bugzilla/show_bug.cgi?id=677 megaco.dll can not handle lowcase descriptor
svn path=/trunk/; revision=17900
2006-04-18 21:08:14 +00:00
Anders Broman 69b54d4d23 From W. Borgert:
- Regenerated files.
- Use .sort() on one or two of the lists in ethereal_gen.py to make generated files
  more diff-friendly in the future. 

svn path=/trunk/; revision=17885
2006-04-17 18:10:23 +00:00
Guy Harris acb0e6d237 Pull the plugin-specific code into "plugin.c", and generate a
"register.c" with "make-reg-dotc"/"make-reg-dotc.py".

Pull the lists of dissector .c and .h files into Makefile.common and
have Makefile.am and Makefile.nmake use it.

svn path=/trunk/; revision=17883
2006-04-17 05:44:00 +00:00
Anders Broman 8f7a6edca8 Add some missing commands.
svn path=/trunk/; revision=17868
2006-04-15 18:41:39 +00:00
Anders Broman a12aba1d39 From Martin Mathieson:
This patch fixes the decode problem mentioned in this bug report:

"3. Frames 9 and 13 are only partially decoded and show up as "Packet size limited during capture" It looks like the decode chokes on the DQ-RI line."

DQ-RI is a localconnectionoptions parameter and shouldn't appear as a top-level parameter. This patch makes sure that all of the single-character top-level parmeter codes are followed immediately by a ':'.

svn path=/trunk/; revision=17816
2006-04-05 16:04:46 +00:00
Luis Ontanon ad4fe1ff8f Fix FieldInfo and add an attribute for the filter name.
svn path=/trunk/; revision=17774
2006-03-30 19:48:05 +00:00
Luis Ontanon 2e93b8b751 TextWindow:
- add buttons
  - make editable




svn path=/trunk/; revision=17773
2006-03-30 19:42:49 +00:00
Gerald Combs 4ea62e57b0 Continue to play whack-a-mole with null dereferences. Fixes CID 146.
svn path=/trunk/; revision=17770
2006-03-30 15:34:18 +00:00
Jaap Keuter 95b974d6ba Undoing commit of private makefile in r17765
svn path=/trunk/; revision=17768
2006-03-30 09:33:39 +00:00
Anders Broman 901f07af60 From Martin Mathieson:
wiretap/README.developer
- the referenced default seek_read function doesn't exist now

wiretap/wtap.c
- a "hole" in encap_table was causing the wrong encap value for later 
types to be looked up (by name)

mergecap.c
- fix a couple of program name copy+paste errors from editcap.c

svn path=/trunk/; revision=17765
2006-03-30 04:58:06 +00:00
Jaap Keuter a5a7b06e54 Get elua to build on IA32
svn path=/trunk/; revision=17755
2006-03-29 10:03:50 +00:00
Gerald Combs 071b5507c2 Fix compilation under Windows.
svn path=/trunk/; revision=17751
2006-03-28 19:25:48 +00:00
Luis Ontanon 75a342667b elua_field.c was added to $MODULES but not to $OBJECTS
svn path=/trunk/; revision=17749
2006-03-27 22:47:20 +00:00
Jaap Keuter 6a093bd4a3 Major properties cleanup
svn path=/trunk/; revision=17747
2006-03-27 21:00:16 +00:00
Gerald Combs 1b468857b8 Be more paranoid about dereferencing pointers (and improve readability
IMHO).  This should hopefully take care of bug 826 / CID 42.

svn path=/trunk/; revision=17744
2006-03-27 19:43:17 +00:00
Luis Ontanon dafdb5ef62 This worked because I've edited elua_field.h as .c and the only thing in elua_field was #include "elua_field.h"
This is the actual elua_field.c 


svn path=/trunk/; revision=17743
2006-03-27 19:35:57 +00:00
Luis Ontanon 01ecb3e457 Improve Field Extraction by returning a handle to a field_info instead of just the value.
svn path=/trunk/; revision=17742
2006-03-27 19:31:30 +00:00
Gerald Combs 642706ce97 Remove some unused #defines.
svn path=/trunk/; revision=17736
2006-03-27 16:57:05 +00:00
Gerald Combs 6be7d55c40 Further refinements for Coverity CID 42. Make some "0"s (which were
confusing my feeble mind) NULLs.  Fix up whitespace.

svn path=/trunk/; revision=17710
2006-03-23 20:13:00 +00:00
Ronnie Sahlberg f331077a60 waste a couple of bytes per tcp conversation and make the tree for acked_packets (i.e. packets that have interesting tcp properties such as being retransmissions etc) hang off the per conversation tcpd struct instead of being global.
while this should improve performance by unmeasurably little it does have the sideeffect that once we finish the rewrite   tcp analysis might actually work and work well even for tcp over tcp tunnelling. 

this also means that if you include packet-tcp.h   you also need to include emem.h .




svn path=/trunk/; revision=17681
2006-03-20 10:52:53 +00:00
Luis Ontanon 43ca54066a Add pinfo.lo and pinfo.hi been thise the lower and the higher between 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-19 22:18:57 +00:00
Ulf Lamping bbaffabaaf we don't need to "ban" the print call any longer
svn path=/trunk/; revision=17652
2006-03-16 23:16:35 +00:00
Ronnie Sahlberg c1aa2aef89 coverity bug 43
svn path=/trunk/; revision=17624
2006-03-14 07:38:43 +00:00
Luis Ontanon 3318411aa7 Use checkTextWindow instead of shiftTextWindow to fetch the window object from the stack, shiftXxx will happily (and rightfully) return a null pointer without an error.
svn path=/trunk/; revision=17615
2006-03-13 22:22:17 +00:00
Luis Ontanon ad6eb21dd1 Expert info is going to be used in runtime.
For the sake of speed use integers instead of strings to then be converted into integers.


svn path=/trunk/; revision=17609
2006-03-13 00:31:04 +00:00
Luis Ontanon 4bafab904c This time, should be the good one!
svn path=/trunk/; revision=17607
2006-03-12 21:45:18 +00:00
Luis Ontanon f100efb165 I Hope this works
svn path=/trunk/; revision=17603
2006-03-12 18:57:38 +00:00
Luis Ontanon f4c227852c Move make-init-lua.pl and family to plugins/lua and have init.lua installed in the right place
svn path=/trunk/; revision=17602
2006-03-12 17:39:46 +00:00
Luis Ontanon 5ca4b68272 reenable TreeItem,
shiftXXX() was broken


svn path=/trunk/; revision=17599
2006-03-12 15:31:33 +00:00
Luis Ontanon 72c79c1289 Protocols are now invoked.
svn path=/trunk/; revision=17598
2006-03-12 13:03:18 +00:00
Luis Ontanon 428823b00e Remove debug code...
svn path=/trunk/; revision=17595
2006-03-11 22:26:08 +00:00
Luis Ontanon b3a173664b Protocols register OK.
svn path=/trunk/; revision=17594
2006-03-11 22:05:40 +00:00
Luis Ontanon 59ec8529e1 Mark coverity CID 117 as a false positive.
Lex code is often hard for humans to understand... neither of the error conditions found would be happening...

One was marked as error because coverity does not understand that yyterminate() breaks execution.

The other marked as an error because coverity is not able to figure out that the error appears in an actions against two different rules that will not ever match toghether.



svn path=/trunk/; revision=17584
2006-03-11 12:07:00 +00:00
Ulf Lamping 22dca0c988 ... and don't forget to include emem.h!
svn path=/trunk/; revision=17577
2006-03-11 09:09:55 +00:00
Ulf Lamping 2e2c970da9 replace g_malloc and alike by their corresponding ep_ functions
svn path=/trunk/; revision=17576
2006-03-11 09:08:18 +00:00
Ulf Lamping 60869fe1cc various code cleanup (e.g. remove unrequired length parameter), should also fix coverity id 126
svn path=/trunk/; revision=17569
2006-03-10 21:34:56 +00:00
Anders Broman 238053ead2 Add lua:s nmakefile.nmake to the distribution.
svn path=/trunk/; revision=17552
2006-03-09 16:17:52 +00:00
Ronnie Sahlberg 726471b25f coverity bug#42
dereverencing a null variable


svn path=/trunk/; revision=17548
2006-03-09 12:11:21 +00:00
Ronnie Sahlberg 3a92bf963c fix coverity bug 122
svn path=/trunk/; revision=17527
2006-03-08 10:59:05 +00:00
Luis Ontanon e83301935d Remove strhash test code from lua...
svn path=/trunk/; revision=17488
2006-03-07 04:40:57 +00:00
Luis Ontanon 6e04b0aadb - merge SubTree, ProtoTree and ProtoItem into a single TreeItem class.
- 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-07 01:25:14 +00:00
Luis Ontanon 7bbd2a14f0 + retap_packets()
svn path=/trunk/; revision=17463
2006-03-05 02:03:51 +00:00
Luis Ontanon 568ad6c34e + retap_packets()
+ complete gtk TextWindow
+ fix elua_dumper
+ fix elua_proto


svn path=/trunk/; revision=17462
2006-03-05 02:01:16 +00:00
Luis Ontanon 5380cea747 - make them work as the got broken while docommenting them.
svn path=/trunk/; revision=17453
2006-03-02 22:55:14 +00:00
Luis Ontanon 31c4bb49d8 - remove some warnings from the windows compile
- some more Tap documentation


svn path=/trunk/; revision=17442
2006-03-02 00:22:39 +00:00
Gerald Combs 050525cfb5 Add Lua support by default for Win32. Fix some compilation problems.
Add Lua information to the version paragraph.

svn path=/trunk/; revision=17440
2006-03-01 21:31:07 +00:00
Luis Ontanon 8b84860a23 - Some more comments
svn path=/trunk/; revision=17415
2006-02-27 01:54:22 +00:00
Luis Ontanon 27e2c87833 The semantics of luaL_checkudata() change between 5.0 and 5.1 (the later 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 12:54:25 +00:00
Luis Ontanon b67337aacf - elua_proto
- 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-25 03:21:00 +00:00
Luis Ontanon eddf915e40 I changed some vanames and did not compile...
svn path=/trunk/; revision=17399
2006-02-24 08:44:49 +00:00
Luis Ontanon 48551d9d85 - More "docOMMentation" of the API
- 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-23 17:02:29 +00:00
Jörg Mayer e4be8f1a19 Delete docs in maintainer-clean target
svn path=/trunk/; revision=17379
2006-02-23 10:18:05 +00:00
Luis Ontanon 7cd1757c80 Forgot...
Elua functions in elua.c moved to this new file.


svn path=/trunk/; revision=17375
2006-02-22 23:58:21 +00:00
Luis Ontanon 251d769ef7 - More documentation embeded in the source code.
- 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-22 23:55:11 +00:00
Jörg Mayer 15cae24313 elua_register.h wasn't built automatically
svn path=/trunk/; revision=17371
2006-02-22 14:19:39 +00:00
Luis Ontanon 3db1ff91a7 - rename all the c files
- 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-21 21:52:28 +00:00
Jaap Keuter 48f6c25460 Fix for bug 756. Handle CR as part of separator as well.
svn path=/trunk/; revision=17359
2006-02-21 11:48:40 +00:00
Luis Ontanon c3c7f8a0c3 - Use lua 5.1
- Compress *_register() functions



svn path=/trunk/; revision=17354
2006-02-19 21:51:34 +00:00
Luis Ontanon accc35dd2a rename plugin.c to lua_plugin.c
svn path=/trunk/; revision=17348
2006-02-18 05:12:58 +00:00
Luis Ontanon 871381514f Add dual version
svn path=/trunk/; revision=17347
2006-02-18 05:11:29 +00:00
Luis Ontanon d9462b4a45 Prepare for lua 5.1
svn path=/trunk/; revision=17346
2006-02-18 04:03:24 +00:00
Luis Ontanon 0b2d1add6f - Make sure the right globals are set before invoking user tap caallbaccks
- Have Dumper.new_for_current() and dumper:dump_current() work.


svn path=/trunk/; revision=17336
2006-02-17 16:16:42 +00:00
Luis Ontanon d238e5ef1e - avoid the user been flooded with report_error windows if there's an error 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 05:16:06 +00:00
Luis Ontanon bafca77aad - pass the tvb too to tap packet callbacks
- Dumper (an interface to Wiretap dumpers)


svn path=/trunk/; revision=17328
2006-02-17 02:50:23 +00:00
Luis Ontanon 1b096ab156 Have Field extractors being defined while reading the body of the script 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-16 00:54:56 +00:00
Luis Ontanon 0646b11758 Protect The tree and The tvb from being used outside their scope
svn path=/trunk/; revision=17307
2006-02-15 02:10:07 +00:00
Luis Ontanon 2d7b55d808 - protect proto_items and proto_trees from being used out of their scope
- fix the severity variables



svn path=/trunk/; revision=17306
2006-02-15 02:00:18 +00:00
Luis Ontanon 86ea89f2aa - protect column, columns and pinfo from dereferencing invalid data saved by 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-15 01:21:51 +00:00
Gerald Combs 844ec9f7a1 mgcp-plugin -> plugin-mgcp.
svn path=/trunk/; revision=17304
2006-02-14 18:52:58 +00:00
Jörg Mayer e10101b774 Experiment with a somewhat generic packet-to-plugin wrapper
svn path=/trunk/; revision=17300
2006-02-14 14:51:18 +00:00
Luis Ontanon 0980473a80 - fix a sure crash after an error in lua code lua_tap_draw.
- make sure no reference to a Tvb in lua is used after the lua dissector has returned.


svn path=/trunk/; revision=17296
2006-02-14 01:29:55 +00:00
Luis Ontanon 184349063f - disable print
- 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-13 22:13:31 +00:00
Luis Ontanon 9fd26b71ef * DissectorTable.add does not allow to add lua protocols that don't have a 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-08 23:26:52 +00:00
Jörg Mayer 2d668534a9 Include glib.h, so FALSE is defined when compiling statically.
svn path=/trunk/; revision=17218
2006-02-08 17:04:21 +00:00
Luis Ontanon afa7c90487 Changed how files are loaded.
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-08 00:02:15 +00:00
Lars Roland 5f1e470cc2 changes to build lua plugin with MSVC6:
- 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-07 09:12:43 +00:00