summaryrefslogtreecommitdiff
path: root/epan
AgeCommit message (Collapse)AuthorFilesLines
2000-11-05Allow plugins to have, instead of "protocol" and "filter_string"Guy Harris1-37/+173
variables and a "dissector" routine, a "plugin_reg_handoff()" routine, which will act just like the "reg_handoff()" routine of a non-plugin dissector, registering the dissector with handoff tables. This lets them plug into both TCP and UDP, or plug into protocols other than TCP or UDP. Those new-style plugin are enabled and disabled using the standard "Edit->Protocols" mechanism (and thus should use "OLD_CHECK_DISPLAY_AS_DATA()" or "CHECK_DISPLAY_AS_DATA()"); they don't show up in the list of plugins, aren't enabled or disabled from that list, and, as they don't have a filter, can't have the filter changed from that list - instead, they should register preferences for port numbers and the like if they should be configurable to use different ports. Make the Gryphon protocol a new-style plugin. svn path=/trunk/; revision=2565
2000-11-03Corrected BASE_OCT support for display formats. Note - it probably isn'tNathan Neulinger1-5/+13
correct to display ints. svn path=/trunk/; revision=2552
2000-11-01Add a fourth choice of time format in the packet list display, whichGuy Harris2-2/+30
shows the date (in YYYY-MM-DD format) as well as the time of day when the packet arrived. svn path=/trunk/; revision=2547
2000-10-27Move to version 0.8.13.Gilbert Ramirez1-5/+5
Mention IGRP dissector in NEWS. svn path=/trunk/; revision=2539
2000-10-27Added some autoconf- and automake-generated files to .cvsignore.Gilbert Ramirez1-0/+8
svn path=/trunk/; revision=2538
2000-10-21Wildcard matching is tricky - you have to try wildcarding both theGuy Harris2-68/+393
source *and* destination port and/or both the source *and* destination address passed to "find_conversation()", because the packet for which you're trying to find the conversation may be going in the opposite direction to the packet for which the conversation was originally created. Create different hash tables for wildcarded conversations, to reduce the number of "is this a wildcard?" tests done when doing hash lookups. This is sufficient to allow the TFTP dissector to use conversations rather than being special-cased in the UDP dissector, and may also be sufficient to handle a similar problem with SMTP (request goes from client IP X port Y to server IP Z's well-known port, reply comes back from some other port on server Z to client IP X port Y), but further use may reveal other changes that should be made. svn path=/trunk/; revision=2525
2000-10-21Support for conversations with "wildcard" destination addresses, fromGuy Harris2-32/+147
Jeff Foster. svn path=/trunk/; revision=2523
2000-10-19Move the declaration of "g_resolving_actif" from the top-levelGuy Harris2-3/+3
"globals.h" file to "epan/resolv.h", as it's exported by "epan/resolv.c", have files that use "g_resolving_actif" include "resolv.h", and don't have "epan/resolv.c" include "globals.h" so that it doesn't drag in, for example, headers that, in turn, drag in GTK+ headers. svn path=/trunk/; revision=2517
2000-10-19There's no "exception.h" header file in "epan", but there isGuy Harris1-2/+2
"exceptions.h". svn path=/trunk/; revision=2514
2000-10-18Get rid of extra declaration of HAVE_DIRECT_H; one is enough.Guy Harris1-4/+1
svn path=/trunk/; revision=2510
2000-10-17Make the top-level "config.h.win32" more closely resemble the top-levelGuy Harris3-5/+100
"config.h", and update it to include stuff added to "config.h" and remove stuff removed from "config.h". Give libethereal a "config.h.win32" and make its "Makefile.nmake" file copy it to "config.h". svn path=/trunk/; revision=2504
2000-10-17Patch from Heikki Vatiainen to make "tvb_strnlen()" return the length ofGuy Harris1-6/+5
the string rather than the offset of the end of the string, plus a patch to "tvb_get_nstringz()" to treat the return value of "tvb_strnlen()" as a length rather than an end offset. svn path=/trunk/; revision=2502
2000-10-17Do checks for platform-specific compiler flags in the libethereal andGuy Harris1-1/+28
wiretap configure scripts as well as in the main configure script. svn path=/trunk/; revision=2501
2000-10-16Give libethereal its own configuration file, and have that configurationGuy Harris13-41/+229
file, rather than the top-level Ethereal configuration file, check for "inet_aton()", "inet_pton()", and "inet_ntop()". Then make its Makefile.am include the appropriate object files if necessary. Otherwise, they don't get built and put into libethereal, and therefore attempts to link with anything in libethereal that uses them fail on platforms that lack ethem, causing the build to fail. That means a bunch of things need to be fixed to cope with libethereal having its own "config.h" file; this means removing the include of "config.h" from some libethereal header files. Move the definitions of the path names used only by "resolv.c" to "resolv.c" from "resolv.h" (so "resolv.h" doesn't need "config.h", define HAVE_PLUGINS in the configure script (so we don't have to include it in "plugins.h" to check whether HAVE_DLFCN_H is defined). Unfortunately, stuff outside libethereal needs to know PLUGIN_DIR; for now, define that in the top-level configuration file, and have Ethereal and Tethereal pass it as an argument to "epan_init()" - that should be cleaned up at some point. Remove from the top-level configure script checks for things used only in libethereal. svn path=/trunk/; revision=2498
2000-10-14Move inet_*.[ch] files to epan.Gilbert Ramirez7-6/+769
svn path=/trunk/; revision=2494
2000-10-14While keeping the directory named 'epan' and the symbols in the libraryGilbert Ramirez2-8/+8
starting with "epan_", change the name of the library from libepan.a to libethereal.a, and from libepan.lib to ethereal.lib. svn path=/trunk/; revision=2492
2000-10-11Fix it to build on Windows.Guy Harris3-3/+50
svn path=/trunk/; revision=2488
2000-10-06Implement epan_dissect_new() and epan_dissect_free(). These are theGilbert Ramirez4-198/+87
"top-level" dissectors that libepan-users call, instead of dissect_packet(). The epan_dissect_t holds the tvbuff after dissection so that the tvbuff's memory is not cleared until after the proto_tree is freed. (I might stuff the proto_tree into the epan_dissect_t, too). What remains of dissect_packet() in packet.c handles the tvbuff initialiation. The real meat of dissect_packet() is now in dissect_frame(), in packet-frame.c This means that "packet.c" is no longer a dissector, os it is no longer passed to make-reg-dotc. Once dissect_fddi() gets two wrapper functions (dissect_fddi_swapped() and dissect_fddi_nonswapped()), the a dissector handoff routine could be used instead of the switch statement in dissect_frame(). I'd register a field like "wtap.encap" svn path=/trunk/; revision=2478
2000-09-30- HAVE_PLUGINS is defined in plugins.h so it must be included here.Olivier Abad1-1/+2
- get rid of the "epan" argument for init_plugins() svn path=/trunk/; revision=2471
2000-09-30If a line consists *solely* of an LF, set "*eol" to point to the LF.Guy Harris1-1/+6
svn path=/trunk/; revision=2469
2000-09-29Dynamically grow the buffer used by "format_text()", rather than cuttingGuy Harris1-24/+37
the text off at 62 characters. svn path=/trunk/; revision=2466
2000-09-28Simple code movement.Gilbert Ramirez3-1/+257
svn path=/trunk/; revision=2463
2000-09-28Simple code movement to epan.Gilbert Ramirez3-1/+1498
svn path=/trunk/; revision=2462
2000-09-28More EPAN-related code movements. Get rid of usage of #include "globals.h"Gilbert Ramirez8-10/+180
and #include "util.h" from epan code. Move get_home_dir() into epan/filesystem.c as it's used by plugins.c. svn path=/trunk/; revision=2461
2000-09-27Move packet.[ch] to epanGilbert Ramirez3-1/+1961
svn path=/trunk/; revision=2460
2000-09-27Fix for bug in lex command.Gilbert Ramirez1-2/+2
svn path=/trunk/; revision=2459
2000-09-27First step in moving core Ethereal routines to libepan.Gilbert Ramirez24-0/+10111
svn path=/trunk/; revision=2458