2000-09-27 04:55:05 +00:00
|
|
|
/* epan.h
|
Give libethereal its own configuration file, and have that configuration
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-16 23:18:05 +00:00
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
2000-09-27 04:55:05 +00:00
|
|
|
*
|
|
|
|
* Ethereal Protocol Analyzer Library
|
|
|
|
*
|
2001-12-18 19:09:08 +00:00
|
|
|
* Copyright (c) 2001 by Gerald Combs <gerald@ethereal.com>
|
2002-08-28 20:41:00 +00:00
|
|
|
*
|
2001-12-18 19:09:08 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2002-08-28 20:41:00 +00:00
|
|
|
*
|
2001-12-18 19:09:08 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2002-08-28 20:41:00 +00:00
|
|
|
*
|
2001-12-18 19:09:08 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
2000-09-27 04:55:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef EPAN_H
|
2000-10-06 10:11:40 +00:00
|
|
|
#define EPAN_H
|
2000-09-27 04:55:05 +00:00
|
|
|
|
2000-09-28 03:16:29 +00:00
|
|
|
#include <glib.h>
|
2001-12-18 19:09:08 +00:00
|
|
|
#include "frame_data.h"
|
|
|
|
#include "column_info.h"
|
2000-10-06 10:11:40 +00:00
|
|
|
|
2001-12-18 19:09:08 +00:00
|
|
|
typedef struct _epan_dissect_t epan_dissect_t;
|
2001-11-21 23:16:26 +00:00
|
|
|
|
2001-12-18 19:09:08 +00:00
|
|
|
#include "dfilter/dfilter.h"
|
2000-10-06 10:11:40 +00:00
|
|
|
|
2004-03-23 21:19:58 +00:00
|
|
|
void epan_init(const char * plugindir, void (*register_all_protocols)(void),
|
|
|
|
void (*register_all_handoffs)(void),
|
2004-04-16 23:17:13 +00:00
|
|
|
void (*report_failure)(const char *, va_list),
|
2004-03-23 21:19:58 +00:00
|
|
|
void (*report_open_failure)(const char *, int, gboolean),
|
|
|
|
void (*report_read_failure)(const char *, int));
|
2000-09-27 04:55:05 +00:00
|
|
|
void epan_cleanup(void);
|
|
|
|
void epan_conversation_init(void);
|
2002-10-22 08:44:33 +00:00
|
|
|
void epan_circuit_init(void);
|
2000-10-06 10:11:40 +00:00
|
|
|
|
2000-09-27 04:55:05 +00:00
|
|
|
/* A client will create one epan_t for an entire dissection session.
|
|
|
|
* A single epan_t will be used to analyze the entire sequence of packets,
|
|
|
|
* sequentially, in a single session. A session corresponds to a single
|
|
|
|
* packet trace file. The reaons epan_t exists is that some packets in
|
|
|
|
* some protocols cannot be decoded without knowledge of previous packets.
|
|
|
|
* This inter-packet "state" is stored in the epan_t.
|
|
|
|
*/
|
|
|
|
typedef struct epan_session epan_t;
|
|
|
|
|
|
|
|
epan_t*
|
|
|
|
epan_new(void);
|
|
|
|
|
|
|
|
void
|
|
|
|
epan_free(epan_t*);
|
|
|
|
|
|
|
|
|
2001-12-18 19:09:08 +00:00
|
|
|
epan_dissect_t*
|
|
|
|
epan_dissect_new(gboolean create_proto_tree, gboolean proto_tree_visible);
|
2000-09-27 04:55:05 +00:00
|
|
|
|
2001-12-18 19:09:08 +00:00
|
|
|
void
|
|
|
|
epan_dissect_run(epan_dissect_t *edt, void* pseudo_header,
|
|
|
|
const guint8* data, frame_data *fd, column_info *cinfo);
|
2000-09-27 04:55:05 +00:00
|
|
|
|
2001-12-18 19:09:08 +00:00
|
|
|
void
|
2002-09-09 21:04:15 +00:00
|
|
|
epan_dissect_prime_dfilter(epan_dissect_t *edt, const dfilter_t*);
|
2000-09-27 04:55:05 +00:00
|
|
|
|
2001-12-18 19:09:08 +00:00
|
|
|
void
|
|
|
|
epan_dissect_fill_in_columns(epan_dissect_t *edt);
|
2000-09-27 04:55:05 +00:00
|
|
|
|
|
|
|
void
|
2000-10-06 10:11:40 +00:00
|
|
|
epan_dissect_free(epan_dissect_t* edt);
|
|
|
|
|
2000-09-27 04:55:05 +00:00
|
|
|
#endif /* EPAN_H */
|