/* capture.c
* Routines for packet capture windows
*
- * $Id: capture.c,v 1.116 2000/07/31 04:03:31 guy Exp $
+ * $Id: capture.c,v 1.117 2000/08/11 13:34:41 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
+
+#ifdef HAVE_FCNTL_H
#include <fcntl.h>
+#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <errno.h>
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
/* column.c
* Routines for handling column preferences
*
- * $Id: column.c,v 1.27 2000/01/10 01:43:47 guy Exp $
+ * $Id: column.c,v 1.28 2000/08/11 13:34:48 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <unistd.h>
#endif
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
#include "timestamp.h"
#include "prefs.h"
/* dfilter.c
* Routines for display filters
*
- * $Id: dfilter.c,v 1.36 2000/08/01 18:10:05 gram Exp $
+ * $Id: dfilter.c,v 1.37 2000/08/11 13:35:31 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
# include <sys/types.h>
#endif
-#ifndef _STDIO_H
#include <stdio.h>
-#endif
-
-#ifndef _STRING_H
#include <string.h>
-#endif
+#include <glib.h>
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
-#ifndef __G_LIB_H__
-#include <glib.h>
-#endif
-
-#ifndef __PROTO_H__
#include "proto.h"
-#endif
-
-#ifndef __DFILTER_H__
#include "dfilter.h"
-#endif
-
-#ifndef __UTIL_H__
#include "util.h"
-#endif
-
#include "dfilter-int.h"
#include "dfilter-grammar.h"
/* dfilter.h
* Definitions for display filters
*
- * $Id: dfilter.h,v 1.17 2000/08/01 18:10:06 gram Exp $
+ * $Id: dfilter.h,v 1.18 2000/08/11 13:34:40 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#ifndef __DFILTER_H__
#define __DFILTER_H__
-#ifndef __PROTO_H__
#include "proto.h"
-#endif
/* dfilter_error_msg is NULL if there was no error during dfilter_compile,
* otherwise it points to a displayable error message. */
/* file.c
* File I/O routines
*
- * $Id: file.c,v 1.204 2000/08/09 06:18:10 gram Exp $
+ * $Id: file.c,v 1.205 2000/08/11 13:34:20 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <sys/stat.h>
#include <errno.h>
-#include <fcntl.h>
#include <signal.h>
+#ifdef HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
+
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
+
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
/* file.h
* Definitions for file structures and routines
*
- * $Id: file.h,v 1.74 2000/08/09 06:18:16 gram Exp $
+ * $Id: file.h,v 1.75 2000/08/11 13:34:30 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <sys/types.h>
#endif
-#ifndef __WTAP_H__
#include "wiretap/wtap.h"
-#endif
#ifdef HAVE_LIBPCAP
-#ifndef lib_pcap_h
#include <pcap.h>
#endif
-#endif
-#ifndef __DFILTER_H__
#include "dfilter.h"
-#endif
-
-#ifndef __COLORS_H__
#include "gtk/colors.h" /* XXX */
-#endif
-
-#ifndef __PRINT_H__
#include "print.h"
-#endif
#include <errno.h>
/* globals.h
* Global defines, etc.
*
- * $Id: globals.h,v 1.19 2000/08/03 12:44:21 gram Exp $
+ * $Id: globals.h,v 1.20 2000/08/11 13:34:29 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#ifndef __GLOBALS_H__
#define __GLOBALS_H__
-#ifndef _STDIO_H_
#include <stdio.h>
-#endif
-
-#ifndef __PACKET_H__
#include "packet.h"
-#endif
-
-#ifndef __FILE_H__
#include "file.h"
-#endif
-
-#ifndef __TIMESTAMP_H__
#include "timestamp.h"
-#endif
#define MIN_PACKET_SIZE 68 /* minimum amount of packet data we can read */
/* capture_dlg.c
* Routines for packet capture windows
*
- * $Id: capture_dlg.c,v 1.29 2000/07/20 05:09:56 guy Exp $
+ * $Id: capture_dlg.c,v 1.30 2000/08/11 13:32:58 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <time.h>
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
/* color_dlg.c
* Definitions for dialog boxes for color filters
*
- * $Id: color_dlg.c,v 1.5 2000/07/20 05:09:56 guy Exp $
+ * $Id: color_dlg.c,v 1.6 2000/08/11 13:33:14 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <string.h>
#include <errno.h>
+
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
#include "gtk/main.h"
#include "packet.h"
/* colors.c
* Definitions for color structures and routines
*
- * $Id: colors.c,v 1.4 2000/07/20 05:09:58 guy Exp $
+ * $Id: colors.c,v 1.5 2000/08/11 13:33:13 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <string.h>
#include <errno.h>
+
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
#include "gtk/main.h"
#include "packet.h"
/* colors.h
* Definitions for color structures and routines
*
- * $Id: colors.h,v 1.2 2000/02/12 08:31:48 guy Exp $
+ * $Id: colors.h,v 1.3 2000/08/11 13:33:00 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#ifndef __COLORS_H__
#define __COLORS_H__
-#ifndef __DFILTER_H__
#include "proto.h"
#include "dfilter.h"
-#endif
-
-#ifndef __GTK_H__
#include <gtk/gtk.h>
-#endif
#define MAXCOLORS 255
#define MAX_COLOR_FILTER_NAME_LEN 33
/* column_prefs.c
* Dialog box for column preferences
*
- * $Id: column_prefs.c,v 1.1 2000/01/10 01:43:58 guy Exp $
+ * $Id: column_prefs.c,v 1.2 2000/08/11 13:33:04 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <errno.h>
-#ifndef __GLOBALS_H__
#include "globals.h"
-#endif
-
#include "column_prefs.h"
#include "gtkglobals.h"
-
-#ifndef __PREFS_DLG_H__
#include "prefs_dlg.h"
-#endif
-
#include "prefs.h"
#include "column.h"
/* display_opts.c
* Routines for packet display windows
*
- * $Id: display_opts.c,v 1.13 2000/07/09 23:22:33 guy Exp $
+ * $Id: display_opts.c,v 1.14 2000/08/11 13:33:09 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <time.h>
-#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
-# include "snprintf.h"
-#endif
-
#ifdef HAVE_SYS_SOCKIO_H
# include <sys/sockio.h>
#endif
+#ifdef NEED_SNPRINTF_H
+# include "snprintf.h"
+#endif
+
#include "globals.h"
#include "timestamp.h"
#include "packet.h"
/* dlg_utils.h
* Declarations of utilities to use when constructing dialogs
*
- * $Id: dlg_utils.h,v 1.3 2000/07/05 02:45:39 guy Exp $
+ * $Id: dlg_utils.h,v 1.4 2000/08/11 13:32:57 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __DLG_UTILS_H__
+#define __DLG_UTILS_H__
+
/* Create a dialog box window that belongs to Ethereal's main window. */
GtkWidget *dlg_window_new(void);
const gchar *label, GtkAccelGroup *accel_group);
GtkWidget *dlg_check_button_new_with_label_with_mnemonic(const gchar *label,
GtkAccelGroup *accel_group);
+
+#endif
/* file_dlg.c
* Dialog boxes for handling files
*
- * $Id: file_dlg.c,v 1.29 2000/07/31 04:53:40 guy Exp $
+ * $Id: file_dlg.c,v 1.30 2000/08/11 13:33:04 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <string.h>
-#ifndef __GLOBALS_H__
#include "globals.h"
-#endif
-#ifndef __GTKGLOBALS_H__
#include "gtkglobals.h"
-#endif
-
-#ifndef __KEYS_H__
#include "keys.h"
-#endif
-
#include "filter_prefs.h"
#include "ui_util.h"
-
-#ifndef __DIALOG_H__
#include "simple_dialog.h"
-#endif
-
-#ifndef __MENU_H__
#include "menu.h"
-#endif
-
#include "file_dlg.h"
#include "dlg_utils.h"
-
-#ifndef __UTIL_H__
#include "util.h"
-#endif
static void file_open_ok_cb(GtkWidget *w, GtkFileSelection *fs);
static void file_open_destroy_cb(GtkWidget *win, gpointer user_data);
* (This used to be a notebook page under "Preferences", hence the
* "prefs" in the file name.)
*
- * $Id: filter_prefs.c,v 1.15 2000/08/07 22:35:14 guy Exp $
+ * $Id: filter_prefs.c,v 1.16 2000/08/11 13:33:08 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <stdlib.h>
#include <string.h>
+
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
+
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
/* find_dlg.c
* Routines for "find frame" window
*
- * $Id: find_dlg.c,v 1.13 2000/07/20 05:09:59 guy Exp $
+ * $Id: find_dlg.c,v 1.14 2000/08/11 13:33:03 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <unistd.h>
#endif
-#ifndef __G_LIB_H__
#include <glib.h>
-#endif
#include "proto.h"
#include "dfilter.h"
/* follow_dlg.c
*
- * $Id: follow_dlg.c,v 1.3 2000/08/09 05:26:11 gram Exp $
+ * $Id: follow_dlg.c,v 1.4 2000/08/11 13:33:12 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <string.h>
#include <errno.h>
+
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
+
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
#ifdef HAVE_IO_H
#include <io.h> /* open/close on win32 */
#endif
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
/* follow_dlg.c
*
- * $Id: follow_dlg.h,v 1.1 2000/08/03 12:44:37 gram Exp $
+ * $Id: follow_dlg.h,v 1.2 2000/08/11 13:32:57 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
*
*/
+#ifndef __FOLLOW_DLG_H__
+#define __FOLLOW_DLG_H__
+
void follow_stream_cb( GtkWidget *, gpointer);
+#endif
/* goto_dlg.c
* Routines for "go to frame" window
*
- * $Id: goto_dlg.c,v 1.9 2000/07/20 05:09:59 guy Exp $
+ * $Id: goto_dlg.c,v 1.10 2000/08/11 13:33:03 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <unistd.h>
#endif
-#ifndef __G_LIB_H__
#include <glib.h>
-#endif
#include "proto.h"
#include "dfilter.h"
/* gui_prefs.c
* Dialog box for GUI preferences
*
- * $Id: gui_prefs.c,v 1.4 2000/02/29 06:24:37 guy Exp $
+ * $Id: gui_prefs.c,v 1.5 2000/08/11 13:33:02 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <errno.h>
-#ifndef __GLOBALS_H__
#include "globals.h"
-#endif
-
#include "gui_prefs.h"
#include "gtkglobals.h"
-
-#ifndef __PREFS_DLG_H__
#include "prefs_dlg.h"
-#endif
static void scrollbar_menu_item_cb(GtkWidget *w, gpointer data);
static void plist_sel_browse_cb(GtkWidget *w, gpointer data);
/* gui_prefs.h
* Definitions for GUI preferences window
*
- * $Id: gui_prefs.h,v 1.1 1999/12/16 06:20:16 gram Exp $
+ * $Id: gui_prefs.h,v 1.2 2000/08/11 13:32:58 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __GUI_PREFS_H__
+#define __GUI_PREFS_H__
GtkWidget *gui_prefs_show(void);
void gui_prefs_ok(GtkWidget *w);
void gui_prefs_save(GtkWidget *w);
void gui_prefs_cancel(GtkWidget *w);
void gui_prefs_delete(GtkWidget *w);
+
+#endif
/* help_dlg.c
*
- * $Id: help_dlg.c,v 1.1 2000/08/08 12:28:50 deniel Exp $
+ * $Id: help_dlg.c,v 1.2 2000/08/11 13:33:11 deniel Exp $
*
* Laurent Deniel <deniel@worldnet.fr>
*
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
/* help_dlg.h
*
- * $Id: help_dlg.h,v 1.1 2000/08/08 12:28:50 deniel Exp $
+ * $Id: help_dlg.h,v 1.2 2000/08/11 13:32:57 deniel Exp $
*
* Laurent Deniel <deniel@worldnet.fr>
*
*
*/
+#ifndef __HELP_DLG_H__
+#define __HELP_DLG_H__
+
void help_cb(GtkWidget *, gpointer);
+
+#endif
/* main.c
*
- * $Id: main.c,v 1.132 2000/08/05 07:02:28 guy Exp $
+ * $Id: main.c,v 1.133 2000/08/11 13:33:06 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#endif
#include <errno.h>
+
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
+
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
#ifdef HAVE_IO_H
#include <io.h> /* open/close on win32 */
#include <signal.h>
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
-/* ethereal.h
+/* main.h
* Global defines, etc.
*
- * $Id: main.h,v 1.15 2000/08/03 12:44:39 gram Exp $
+ * $Id: main.h,v 1.16 2000/08/11 13:32:58 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include "config.h"
#endif
-#ifndef __GLOBALS_H__
#include "globals.h"
-#endif
#ifdef WIN32
#define MONO_MEDIUM_FONT "-*-lucida console-medium-*-*-*-*-100-*-*-*-*-*-*"
*
* Copyright 2000, Jeffrey C. Foster <jfoste@woodward.com>
*
- * $Id: packet_win.h,v 1.2 2000/03/02 07:05:57 guy Exp $
+ * $Id: packet_win.h,v 1.3 2000/08/11 13:32:57 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_WIN_H__
+#define __PACKET_WIN_H__
+
extern void new_window_cb(GtkWidget *w);
void set_ptree_sel_browse_packet_wins(gboolean val);
void set_ptree_line_style_packet_wins(gint style);
void set_ptree_expander_style_packet_wins(gint style);
+
+#endif
/* plugins_dlg.c
* Dialog boxes for plugins
*
- * $Id: plugins_dlg.c,v 1.15 2000/07/20 05:10:02 guy Exp $
+ * $Id: plugins_dlg.c,v 1.16 2000/08/11 13:33:10 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#endif
#include <errno.h>
+
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
+
#include <stdlib.h>
#include <string.h>
/* prefs_dlg.c
* Routines for handling preferences
*
- * $Id: prefs_dlg.c,v 1.16 2000/07/10 09:18:38 guy Exp $
+ * $Id: prefs_dlg.c,v 1.17 2000/08/11 13:33:05 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <unistd.h>
#endif
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
#include "main.h"
#include "packet.h"
/* prefs_dlg.h
* Definitions for preference handling routines
*
- * $Id: prefs_dlg.h,v 1.3 2000/07/05 06:33:02 guy Exp $
+ * $Id: prefs_dlg.h,v 1.4 2000/08/11 13:32:59 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#ifndef __PREFS_DLG_H__
#define __PREFS_DLG_H__
-#ifndef __PREFS_H__
#include "prefs.h"
-#endif
void prefs_cb(GtkWidget *, gpointer);
/* print_dlg.c
* Dialog boxes for printing
*
- * $Id: print_dlg.c,v 1.19 2000/07/05 02:45:41 guy Exp $
+ * $Id: print_dlg.c,v 1.20 2000/08/11 13:33:01 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <errno.h>
-#ifndef __GLOBALS_H__
#include "globals.h"
-#endif
-
-#ifndef __KEYS_H__
#include "keys.h"
-#endif
-
-#ifndef __PRINT_H__
#include "print.h"
-#endif
-
-#ifndef __PREFS_DLG_H__
#include "prefs_dlg.h"
-#endif
-
-#ifndef __DIALOG_H__
#include "simple_dialog.h"
-#endif
-
#include "ui_util.h"
#include "dlg_utils.h"
/* print_prefs.c
* Dialog boxes for preferences for printing
*
- * $Id: print_prefs.c,v 1.5 2000/05/08 07:54:54 guy Exp $
+ * $Id: print_prefs.c,v 1.6 2000/08/11 13:33:01 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <errno.h>
-#ifndef __GLOBALS_H__
#include "globals.h"
-#endif
-
#include "print_prefs.h"
-
-#ifndef __KEYS_H__
#include "keys.h"
-#endif
-
-#ifndef __PRINT_H__
#include "print.h"
-#endif
-
-#ifndef __PREFS_DLG_H__
#include "prefs_dlg.h"
-#endif
-
-#ifndef __UTIL_H__
#include "util.h"
-#endif
-
#include "ui_util.h"
#include "dlg_utils.h"
/* print_prefs.h
* Definitions for print preferences window
*
- * $Id: print_prefs.h,v 1.3 1999/09/10 06:53:32 guy Exp $
+ * $Id: print_prefs.h,v 1.4 2000/08/11 13:32:56 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PRINT_PREFS_H__
+#define __PRINT_PREFS_H__
GtkWidget *printer_prefs_show(void);
void printer_prefs_ok(GtkWidget *w);
void printer_prefs_save(GtkWidget *w);
void printer_prefs_cancel(GtkWidget *w);
void printer_prefs_delete(GtkWidget *w);
+
+#endif
/* simple_dialog.c
* Simple message dialog box routines.
*
- * $Id: simple_dialog.c,v 1.4 2000/07/20 05:10:02 guy Exp $
+ * $Id: simple_dialog.c,v 1.5 2000/08/11 13:33:09 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <stdio.h>
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
/* stream_prefs.c
* Dialog boxes for preferences for the stream window
*
- * $Id: stream_prefs.c,v 1.1 1999/12/02 04:30:15 gerald Exp $
+ * $Id: stream_prefs.c,v 1.2 2000/08/11 13:33:00 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <errno.h>
-#ifndef __GLOBALS_H__
#include "globals.h"
-#endif
-
#include "stream_prefs.h"
-
-#ifndef __KEYS_H__
#include "keys.h"
-#endif
-
-#ifndef __PRINT_H__
#include "print.h"
-#endif
-
-#ifndef __PREFS_DLG_H__
#include "prefs_dlg.h"
-#endif
-
-#ifndef __UTIL_H__
#include "util.h"
-#endif
static void update_text_color(GtkWidget *, gpointer);
static void update_current_color(GtkWidget *, gpointer);
/* stream_prefs.h
* Definitions for stream preferences window
*
- * $Id: stream_prefs.h,v 1.1 1999/12/02 04:30:15 gerald Exp $
+ * $Id: stream_prefs.h,v 1.2 2000/08/11 13:32:56 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __STREAM_PREFS_H__
+#define __STREAM_PREFS_H__
GtkWidget *stream_prefs_show(void);
void stream_prefs_ok(GtkWidget *w);
void stream_prefs_save(GtkWidget *w);
void stream_prefs_cancel(GtkWidget *w);
void stream_prefs_delete(GtkWidget *w);
+
+#endif
/* summary_dlg.c
* Routines for capture file summary window
*
- * $Id: summary_dlg.c,v 1.5 2000/07/05 06:19:27 guy Exp $
+ * $Id: summary_dlg.c,v 1.6 2000/08/11 13:33:08 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <wtap.h>
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
/* inet_aton.h
*
- * $Id: inet_aton.h,v 1.1 2000/07/14 07:11:53 guy Exp $
+ * $Id: inet_aton.h,v 1.2 2000/08/11 13:34:19 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
/*
* Version of "inet_aton()", for the benefit of OSes that don't have it.
*/
+
+#ifndef __INET_ATON_H__
+#define __INET_ATON_H__
+
struct in_addr;
extern int inet_aton(const char* cp_arg, struct in_addr *addr);
+
+#endif
#endif
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$Id: inet_ntop.c,v 1.3 2000/01/10 17:32:51 gram Exp $";
+static char rcsid[] = "$Id: inet_ntop.c,v 1.4 2000/08/11 13:34:52 deniel Exp $";
#endif /* LIBC_SCCS and not lint */
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#include <string.h>
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
#endif
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$Id: inet_pton.c,v 1.3 2000/01/10 17:32:51 gram Exp $";
+static char rcsid[] = "$Id: inet_pton.c,v 1.4 2000/08/11 13:34:52 deniel Exp $";
#endif /* LIBC_SCCS and not lint */
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
#ifdef HAVE_WINSOCK_H
#include <winsock.h>
/* inet_v6defs.h
*
- * $Id: inet_v6defs.h,v 1.3 2000/07/14 07:11:53 guy Exp $
+ * $Id: inet_v6defs.h,v 1.4 2000/08/11 13:34:19 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __INET_V6DEFS_H__
+#define __INET_V6DEFS_H__
+
/*
* Versions of "inet_pton()" and "inet_ntop()", for the benefit of OSes that
* don't have it.
#ifndef __P
#define __P(args) args
#endif
+
+#endif
/* ipproto.c
* Routines for converting IPv4 protocol/v6 nxthdr field into string
*
- * $Id: ipproto.c,v 1.8 2000/05/26 21:54:50 guy Exp $
+ * $Id: ipproto.c,v 1.9 2000/08/11 13:35:31 deniel Exp $
*
* Gilbert Ramirez <gram@xiexie.org>
*
# include <netdb.h>
#endif
+#include <glib.h>
+
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
-#include <glib.h>
-
-#ifndef __GLOBALS_H__
#include "globals.h"
-#endif
-
#include "packet.h"
#include "etypes.h"
+#include "resolv.h"
#include "packet-ip.h"
#include "packet-ipv6.h"
* Definitions of OSI NLPIDs (Network Layer Protocol IDs)
* Laurent Deniel <deniel@worldnet.fr>
*
- * $Id: nlpid.h,v 1.4 2000/04/15 22:11:07 guy Exp $
+ * $Id: nlpid.h,v 1.5 2000/08/11 13:34:19 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __NLPID_H__
+#define __NLPID_H__
+
/* ISO/IEC TR 9577 NLPID values. */
#define NLPID_NULL 0x00
extern const value_string nlpid_vals[];
+#endif
* Definitions of OUIs
* Gilbert Ramirez <gram@xiexie.org>
*
- * $Id: oui.h,v 1.6 2000/04/12 20:24:34 gram Exp $
+ * $Id: oui.h,v 1.7 2000/08/11 13:34:18 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __OUI_H__
+#define __OUI_H__
+
#define OUI_ENCAP_ETHER 0x000000 /* encapsulated Ethernet */
#define OUI_CISCO 0x00000C /* Cisco (future use) */
#define OUI_CISCO_90 0x0000F8 /* Cisco (IOS 9.0 and above?) */
#define OUI_CABLE_BPDU 0x00E02F /* DOCSIS spanning tree BPDU */
extern const value_string oui_vals[];
+
+#endif
/* packet-ascend.h
*
- * $Id: packet-ascend.h,v 1.4 2000/05/19 23:06:08 gram Exp $
+ * $Id: packet-ascend.h,v 1.5 2000/08/11 13:34:18 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_ASCEND_H__
+#define __PACKET_ASCEND_H__
+
void dissect_ascend(tvbuff_t *, packet_info *, proto_tree *);
+
+#endif
/* packet-atalk.h
* Definitions for Appletalk packet disassembly (DDP, currently).
*
- * $Id: packet-atalk.h,v 1.3 2000/05/28 22:59:18 guy Exp $
+ * $Id: packet-atalk.h,v 1.4 2000/08/11 13:34:17 deniel Exp $
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_ATALK_H__
+#define __PACKET_ATALK_H__
+
/*
* Structure used to represent a DDP address; gives the layout of the
* data pointed to by an AT_ATALK "address" structure.
void dissect_ddp(const u_char *, int, frame_data *, proto_tree *);
+#endif
/* packet-atm.h
*
- * $Id: packet-atm.h,v 1.4 2000/05/29 08:57:37 guy Exp $
+ * $Id: packet-atm.h,v 1.5 2000/08/11 13:34:17 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_ATM_H__
+#define __PACKET_ATM_H__
+
void dissect_atm(tvbuff_t *, packet_info *, proto_tree *);
+
+#endif
* Routines for BGP packet dissection.
* Copyright 1999, Jun-ichiro itojun Hagino <itojun@itojun.org>
*
- * $Id: packet-bgp.c,v 1.24 2000/08/07 03:20:23 guy Exp $
+ * $Id: packet-bgp.c,v 1.25 2000/08/11 13:35:29 deniel Exp $
*
* Supports:
* RFC1771 A Border Gateway Protocol 4 (BGP-4)
# include <netinet/in.h>
#endif
-#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
-# include "snprintf.h"
+#ifdef HAVE_ARPA_INET_H
+#include <arpa/inet.h>
#endif
#include <string.h>
#include <glib.h>
+
+#ifdef NEED_SNPRINTF_H
+# include "snprintf.h"
+#endif
+
#include "packet.h"
#include "packet-bgp.h"
#include "packet-ipv6.h"
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
-
#define TCP_PORT_BGP 179
static const value_string bgptypevals[] = {
/* packet-bpdu.h
*
- * $Id: packet-bpdu.h,v 1.1 2000/02/15 21:02:04 gram Exp $
+ * $Id: packet-bpdu.h,v 1.2 2000/08/11 13:34:17 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_BPDU_H__
+#define __PACKET_BPDU_H__
void dissect_bpdu(const u_char *, int, frame_data *, proto_tree *);
+
+#endif
/* packet-cdp.h
*
- * $Id: packet-cdp.h,v 1.1 2000/02/15 21:02:04 gram Exp $
+ * $Id: packet-cdp.h,v 1.2 2000/08/11 13:34:16 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_CDP_H__
+#define __PACKET_CDP_H__
void dissect_cdp(const u_char *, int, frame_data *, proto_tree *);
+
+#endif
/* packet-cgmp.h
*
- * $Id: packet-cgmp.h,v 1.1 2000/02/15 21:02:05 gram Exp $
+ * $Id: packet-cgmp.h,v 1.2 2000/08/11 13:34:15 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_CGMP_H__
+#define __PACKET_CGMP_H__
void dissect_cgmp(const u_char *, int, frame_data *, proto_tree *);
+
+#endif
/* packet-clip.h
*
- * $Id: packet-clip.h,v 1.2 2000/05/25 14:55:22 gram Exp $
+ * $Id: packet-clip.h,v 1.3 2000/08/11 13:34:15 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_CLIP_H__
+#define __PACKET_CLIP_H__
+
void capture_clip(const u_char *, packet_counts *);
void dissect_clip(tvbuff_t *, packet_info *, proto_tree *);
+
+#endif
* see http://ddt.sourceforge.net/
* Olivier Abad <oabad@cybercable.fr>
*
- * $Id: packet-ddtp.h,v 1.2 2000/05/28 17:04:10 oabad Exp $
+ * $Id: packet-ddtp.h,v 1.3 2000/08/11 13:34:14 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
*
*/
+#ifndef __PACKET_DDTP_H__
+#define __PACKET_DDTP_H__
+
#define DDTP_VERSION_ERROR 0
#define DDTP_VERSION_4 1
#define DDTP_VERSION_5 2
#define DDTP_INVALID_PASSWORD 2
#define DDTP_INVALID_ACCOUNT 3
#define DDTP_INVALID_OPCODE 4
+
+#endif
/* packet-diameter.h
* Declaration of the DIAMETER dissector.
*
- * $Id: packet-diameter.h,v 1.1 2000/07/30 07:16:03 guy Exp $
+ * $Id: packet-diameter.h,v 1.2 2000/08/11 13:34:13 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_DIAMETER_H__
+#define __PACKET_DIAMETER_H__
+
extern void dissect_diameter(const u_char *pd, int offset, frame_data *fd,
proto_tree *tree);
+
+#endif
/* packet-eth.h
*
- * $Id: packet-eth.h,v 1.2 2000/05/16 06:21:32 gram Exp $
+ * $Id: packet-eth.h,v 1.3 2000/08/11 13:34:13 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_ETH_H__
+#define __PACKET_ETH_H__
+
void capture_eth(const u_char *, int, packet_counts *);
void dissect_eth(tvbuff_t *, packet_info *, proto_tree *);
+
+#endif
+
/* packet-fddi.h
*
- * $Id: packet-fddi.h,v 1.2 2000/05/11 08:15:08 gram Exp $
+ * $Id: packet-fddi.h,v 1.3 2000/08/11 13:34:13 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_FDDI_H__
+#define __PACKET_FDDI_H__
+
void capture_fddi(const u_char *, packet_counts *);
void dissect_fddi(tvbuff_t*, packet_info*, proto_tree*, gboolean bitswapped);
+
+#endif
/* packet-http.h
*
- * $Id: packet-http.h,v 1.1 2000/02/15 21:02:13 gram Exp $
+ * $Id: packet-http.h,v 1.2 2000/08/11 13:34:12 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_HTTP_H__
+#define __PACKET_HTTP_H__
void dissect_http(const u_char *, int, frame_data *, proto_tree *);
+
+#endif
/* packet-icmpv6.c
* Routines for ICMPv6 packet disassembly
*
- * $Id: packet-icmpv6.c,v 1.18 2000/08/07 03:20:36 guy Exp $
+ * $Id: packet-icmpv6.c,v 1.19 2000/08/11 13:35:27 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
# include <netinet/in.h>
#endif
+#include <glib.h>
+
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
-#include <glib.h>
#include "packet.h"
#include "packet-ipv6.h"
#include "packet-ip.h"
/* packet-icq.c
* Routines for ICQ packet disassembly
*
- * $Id: packet-icq.c,v 1.19 2000/08/07 03:20:38 guy Exp $
+ * $Id: packet-icq.c,v 1.20 2000/08/11 13:35:24 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Johan Feyaerts
#include <glib.h>
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
/* packet-ip.c
* Routines for IP and miscellaneous IP protocol packet disassembly
*
- * $Id: packet-ip.c,v 1.100 2000/08/07 03:20:40 guy Exp $
+ * $Id: packet-ip.c,v 1.101 2000/08/11 13:35:20 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <stdio.h>
#include <string.h>
#include <glib.h>
-#include "packet.h"
-#include "resolv.h"
-#include "prefs.h"
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
+#include "packet.h"
+#include "resolv.h"
+#include "prefs.h"
#include "etypes.h"
#include "ppptypes.h"
#include "llcsaps.h"
/* packet-ipp.h
*
- * $Id: packet-ipp.h,v 1.1 2000/02/15 21:02:19 gram Exp $
+ * $Id: packet-ipp.h,v 1.2 2000/08/11 13:34:11 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_IPP_H__
+#define __PACKET_IPP_H__
void dissect_ipp(const u_char *, int, frame_data *, proto_tree *);
+
+#endif
/* packet-ipsec.h
*
- * $Id: packet-ipsec.h,v 1.3 2000/06/05 03:21:02 gram Exp $
+ * $Id: packet-ipsec.h,v 1.4 2000/08/11 13:34:03 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_IPSEC_H__
+#define __PACKET_IPSEC_H__
int dissect_ah_old(const u_char *, int, frame_data *, proto_tree *);
void dissect_ah(const u_char *, int, frame_data *, proto_tree *);
+
+#endif
* Routines for NetWare's IPX
* Gilbert Ramirez <gram@xiexie.org>
*
- * $Id: packet-ipx.h,v 1.9 2000/08/07 03:20:45 guy Exp $
+ * $Id: packet-ipx.h,v 1.10 2000/08/11 13:34:11 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
*
*/
+#ifndef __PACKET_IPX_H__
+#define __PACKET_IPX_H__
+
#define IPX_NODE_LEN 6
typedef guint32 IPXNet;
void capture_ipx(const u_char *, int, packet_counts *);
void dissect_ipx(tvbuff_t *, packet_info *, proto_tree *);
+#endif
* (ISAKMP) (RFC 2408)
* Brad Robel-Forrest <brad.robel-forrest@watchguard.com>
*
- * $Id: packet-isakmp.c,v 1.24 2000/08/07 03:20:45 guy Exp $
+ * $Id: packet-isakmp.c,v 1.25 2000/08/11 13:35:18 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#endif
#include <glib.h>
-#include "packet.h"
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
+#include "packet.h"
+
static int proto_isakmp = -1;
static gint ett_isakmp = -1;
/* packet-isis-clv.c
* Common CLV decode routines.
*
- * $Id: packet-isis-clv.c,v 1.7 2000/08/10 14:21:09 deniel Exp $
+ * $Id: packet-isis-clv.c,v 1.8 2000/08/11 13:35:17 deniel Exp $
* Stuart Stanley <stuarts@mxmail.net>
*
* Ethereal - Network traffic analyzer
# include <sys/types.h>
#endif
+#include <stdio.h>
+#include <string.h>
+#include <glib.h>
+
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
-#include <stdio.h>
-#include <string.h>
-#include <glib.h>
#include "packet.h"
#include "packet-osi.h"
#include "packet-isis.h"
/* packet-isl.h
*
- * $Id: packet-isl.h,v 1.1 2000/02/15 21:02:28 gram Exp $
+ * $Id: packet-isl.h,v 1.2 2000/08/11 13:34:10 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_ISL_H__
+#define __PACKET_ISL_H__
+
void capture_isl(const u_char *, int, packet_counts *);
void dissect_isl(const u_char *, int, frame_data *, proto_tree *);
+
+#endif
* Wes Hardaker (c) 2000
* wjhardaker@ucdavis.edu
*
- * $Id: packet-kerberos.h,v 1.1 2000/08/11 03:32:44 guy Exp $
+ * $Id: packet-kerberos.h,v 1.2 2000/08/11 13:34:19 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+
+#ifndef __PACKET_KERBEROS_H__
+#define __PACKET_KERBEROS_H__
+
void dissect_kerberos(const u_char *, int, frame_data *, proto_tree *);
void dissect_PrincipalName(char *title, ASN1_SCK *asn1p, frame_data *fd,
proto_tree *tree, int *offset);
proto_tree *tree, int *inoff);
+#endif
/* packet-lapb.h
*
- * $Id: packet-lapb.h,v 1.4 2000/05/25 08:45:54 gram Exp $
+ * $Id: packet-lapb.h,v 1.5 2000/08/11 13:34:10 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_LAPB_H__
+#define __PACKET_LAPB_H__
+
void dissect_lapb(tvbuff_t *, packet_info *, proto_tree *);
+
+#endif
/* packet-lapd.h
*
- * $Id: packet-lapd.h,v 1.4 2000/05/31 03:58:54 gram Exp $
+ * $Id: packet-lapd.h,v 1.5 2000/08/11 13:33:59 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_LAPD_H__
+#define __PACKET_LAPD_H__
+
void dissect_lapd(tvbuff_t *, packet_info *, proto_tree *);
+
+#endif
/* packet-ldap.c
* Routines for ldap packet dissection
*
- * $Id: packet-ldap.c,v 1.13 2000/08/07 03:20:48 guy Exp $
+ * $Id: packet-ldap.c,v 1.14 2000/08/11 13:35:15 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <glib.h>
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
/* packet-ldap.h
*
- * $Id: packet-ldap.h,v 1.4 2000/04/08 07:07:28 guy Exp $
+ * $Id: packet-ldap.h,v 1.5 2000/08/11 13:34:09 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_LDAP_H__
+#define __PACKET_LDAP_H__
+
/*
* These are all APPLICATION types; the value is the type tag.
*/
#define LDAP_MOD_ADD 0
#define LDAP_MOD_DELETE 1
#define LDAP_MOD_REPLACE 2
+
+#endif
/* packet-llc.h
*
- * $Id: packet-llc.h,v 1.2 2000/05/11 22:04:17 gram Exp $
+ * $Id: packet-llc.h,v 1.3 2000/08/11 13:34:08 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_LLC_H__
+#define __PACKET_LLC_H__
+
void capture_llc(const u_char *, int, packet_counts *);
void dissect_llc(tvbuff_t *, packet_info *, proto_tree *);
+
+#endif
* Routines for Mobile IP dissection
* Copyright 2000, Stefan Raab <Stefan.Raab@nextel.com>
*
- * $Id: packet-mip.c,v 1.6 2000/08/07 03:20:51 guy Exp $
+ * $Id: packet-mip.c,v 1.7 2000/08/11 13:35:14 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
# include <netinet/in.h>
#endif
+#include <string.h>
+#include <glib.h>
+
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
-#include <string.h>
-#include <glib.h>
#include "packet.h"
/* Initialize the protocol and registered fields */
* Routines for Microsoft Proxy packet dissection
* Copyright 2000, Jeffrey C. Foster <jfoste@woodward.com>
*
- * $Id: packet-msproxy.c,v 1.7 2000/08/07 03:20:52 guy Exp $
+ * $Id: packet-msproxy.c,v 1.8 2000/08/11 13:35:11 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <stdio.h>
#include <string.h>
#include <glib.h>
+
+#ifdef NEED_SNPRINTF_H
+# include "snprintf.h"
+#endif
+
#include "packet.h"
#include "resolv.h"
#include "globals.h"
#include "packet-tcp.h"
#include "packet-udp.h"
-
-#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
-# include "snprintf.h"
-#endif
-
#define CHECK_PACKET_LENGTH(X) if (!BYTES_ARE_IN_FRAME(offset, X)){ \
proto_tree_add_text(tree, NullTVB, offset, 0, "****FRAME TOO SHORT***"); return;}
/* packet-nbipx.h
*
- * $Id: packet-nbipx.h,v 1.2 2000/05/30 03:35:53 guy Exp $
+ * $Id: packet-nbipx.h,v 1.3 2000/08/11 13:34:08 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_NBIPX_H__
+#define __PACKET_NBIPX_H__
void dissect_nbipx(const u_char *, int, frame_data *, proto_tree *);
+
+#endif
* Structures and functions for NetWare Core Protocol.
* Gilbert Ramirez <gram@xiexie.org>
*
- * $Id: packet-ncp-int.h,v 1.1 2000/07/28 20:03:42 gram Exp $
+ * $Id: packet-ncp-int.h,v 1.2 2000/08/11 13:34:06 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_NCP_INT_H__
+#define __PACKET_NCP_INT_H__
+
typedef struct {
int *hf_ptr;
gint length;
extern int proto_ncp;
+
+#endif
-/* packet-netbios.c
+/* packet-netbios.h
* Declarations of public routines for NetBIOS protocol packet disassembly
* Jeff Foster <foste@woodward.com>
* Copyright 1999 Jeffrey C. Foster
*
* derived from the packet-nbns.c
*
- * $Id: packet-netbios.h,v 1.6 2000/04/17 00:32:41 guy Exp $
+ * $Id: packet-netbios.h,v 1.7 2000/08/11 13:34:05 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_NETBIOS_H__
+#define __PACKET_NETBIOS_H__
+
/* Length of NetBIOS names */
#define NETBIOS_NAME_LEN 16
extern char *netbios_name_type_descr(int name_type);
extern gboolean netbios_add_name( char* label, const u_char *pd, int offset,
proto_tree *tree);
+
+#endif
* Routines for NTP packet dissection
* Copyright 1999, Nathan Neulinger <nneul@umr.edu>
*
- * $Id: packet-ntp.c,v 1.14 2000/08/07 03:20:57 guy Exp $
+ * $Id: packet-ntp.c,v 1.15 2000/08/11 13:35:09 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <glib.h>
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
/* packet-null.h
*
- * $Id: packet-null.h,v 1.2 2000/05/19 05:18:26 guy Exp $
+ * $Id: packet-null.h,v 1.3 2000/08/11 13:34:05 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_NULL_H__
+#define __PACKET_NULL_H__
+
void capture_null(const u_char *, packet_counts *);
void dissect_null(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
+
+#endif
-/* packet-ospf.h (c) 1998 Hannes Boehm */
-
-/* $Id: packet-ospf.h,v 1.8 2000/04/16 22:46:21 guy Exp $ */
+/* packet-ospf.h
+ *
+ * $Id: packet-ospf.h,v 1.9 2000/08/11 13:34:04 deniel Exp $
+ *
+ * (c) 1998 Hannes Boehm
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@zing.org>
+ * Copyright 1998 Gerald Combs
+ *
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ */
+
+#ifndef __PACKET_OSPF_H__
+#define __PACKET_OSPF_H__
#define OSPF_HEADER_LENGTH 24
guint8 length;
guint32 sequence_num;
} e_ospf_crypto;
+
+#endif
* Routines for PIM disassembly
* (c) Copyright Jun-ichiro itojun Hagino <itojun@itojun.org>
*
- * $Id: packet-pim.c,v 1.15 2000/08/07 03:20:59 guy Exp $
+ * $Id: packet-pim.c,v 1.16 2000/08/11 13:35:08 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-
-#include "config.h"
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#include <netinet/in.h>
#endif
+#include <glib.h>
+
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
-#include <glib.h>
#include "packet.h"
#include "packet-ip.h"
#include "packet-ipv6.h"
-/* packet-portmap.h */
-/* $Id: packet-portmap.h,v 1.3 1999/11/15 14:17:19 nneul Exp $ */
+/* packet-portmap.h
+ *
+ * $Id: packet-portmap.h,v 1.4 2000/08/11 13:34:03 deniel Exp $
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@zing.org>
+ * Copyright 1998 Gerald Combs
+ *
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ */
#ifndef PACKET_PORTMAP_H
#define PACKET_PORTMAP_H
/* packet-ppp.h
*
- * $Id: packet-ppp.h,v 1.3 2000/05/25 07:42:25 gram Exp $
+ * $Id: packet-ppp.h,v 1.4 2000/08/11 13:34:03 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_PPP_H__
+#define __PACKET_PPP_H__
+
void capture_ppp(const u_char *, int, packet_counts *);
void dissect_ppp(tvbuff_t *, packet_info *, proto_tree *);
void dissect_payload_ppp(const u_char *, int, frame_data *, proto_tree *);
+
+#endif
/* packet-q2931.h
*
- * $Id: packet-q2931.h,v 1.2 2000/05/29 08:57:38 guy Exp $
+ * $Id: packet-q2931.h,v 1.3 2000/08/11 13:34:03 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_Q2931_H__
+#define __PACKET_Q2931_H__
+
void dissect_q2931(tvbuff_t *, packet_info *, proto_tree *);
+
+#endif
* Declarations of exported routines for Q.931 and Q.2931 frame disassembly
* Guy Harris <guy@alum.mit.edu>
*
- * $Id: packet-q931.h,v 1.3 2000/05/29 08:57:40 guy Exp $
+ * $Id: packet-q931.h,v 1.4 2000/08/11 13:34:02 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_Q931_H__
+#define __PACKET_Q931_H__
+
void dissect_q931(tvbuff_t *, packet_info *, proto_tree *);
extern void dissect_q931_bearer_capability_ie(tvbuff_t *, int, int,
extern void dissect_q931_progress_indicator_ie(tvbuff_t *, int, int,
proto_tree *);
+
+#endif
/* packet-raw.h
*
- * $Id: packet-raw.h,v 1.2 2000/05/19 21:47:37 gram Exp $
+ * $Id: packet-raw.h,v 1.3 2000/08/11 13:34:02 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_RAW_H__
+#define __PACKET_RAW_H__
+
void capture_raw(const u_char *, packet_counts *);
void dissect_raw(tvbuff_t *, packet_info *, proto_tree *);
+
+#endif
-/* packet-rip.h (c) 1998 Hannes Boehm */
+/* packet-rip.h
+ *
+ * $Id: packet-rip.h,v 1.6 2000/08/11 13:34:02 deniel Exp $
+ *
+ * (c) 1998 Hannes Boehm
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@zing.org>
+ * Copyright 1998 Gerald Combs
+ *
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ */
-/* $Id: packet-rip.h,v 1.5 2000/04/14 06:17:23 guy Exp $ */
+#ifndef __PACKET_RIP_H__
+#define __PACKET_RIP_H__
#define RIPv1 1
#define RIPv2 2
e_rip_vektor vektor;
e_rip_authentication authentication;
} e_rip_entry;
+
+#endif
* RIPng definition
* (c) Copyright Jun-ichiro itojun Hagino <itojun@itojun.org>
*
- * $Id: packet-ripng.h,v 1.3 2000/04/08 07:07:35 guy Exp $
+ * $Id: packet-ripng.h,v 1.4 2000/08/11 13:34:28 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#ifndef __PACKET_RIPNG_H_DEFINED__
#define __PACKET_RIPNG_H_DEFINED__
-#ifndef __GLOBALS_H__
#include "globals.h"
-#endif
-
-#ifndef __PACKET_IPV6_H_DEFINED__
#include "packet-ipv6.h"
-#endif
/*
* KAME Header: /cvsroot/kame/kame/kame/kame/route6d/route6d.h,v 1.1.1.1 1999/08/08 23:31:35 itojun Exp
* Routines for unix rlogin packet dissection
* Copyright 2000, Jeffrey C. Foster <jfoste@woodward.com>
*
- * $Id: packet-rlogin.c,v 1.7 2000/08/07 03:21:04 guy Exp $
+ * $Id: packet-rlogin.c,v 1.8 2000/08/11 13:35:07 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <stdio.h>
#include <string.h>
#include <glib.h>
+
+#ifdef NEED_SNPRINTF_H
+# include "snprintf.h"
+#endif
+
#include "packet.h"
#include "resolv.h"
#include "globals.h"
#include "packet-tcp.h"
-#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
-# include "snprintf.h"
-#endif
#define CHECK_PACKET_LENGTH(X) if (!BYTES_ARE_IN_FRAME(offset, X)){ \
proto_tree_add_text(tree, NullTVB, offset, 0, "*** FRAME TOO SHORT ***"); \
-/* packet-rpc.h (c) 1999 Uwe Girlich */
-/* $Id: packet-rpc.h,v 1.16 2000/08/08 06:19:51 girlich Exp $ */
+/* packet-rpc.h
+ *
+ * $Id: packet-rpc.h,v 1.17 2000/08/11 13:34:01 deniel Exp $
+ *
+ * (c) 1999 Uwe Girlich
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@zing.org>
+ * Copyright 1998 Gerald Combs
+ *
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ */
#ifndef __PACKET_RPC_H__
#define __PACKET_RPC_H__
*
* (c) Copyright Ashok Narayanan <ashokn@cisco.com>
*
- * $Id: packet-rsvp.c,v 1.25 2000/08/07 03:21:06 guy Exp $
+ * $Id: packet-rsvp.c,v 1.26 2000/08/11 13:35:04 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
# include <netinet/in.h>
#endif
+#include <glib.h>
+
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
-#include <glib.h>
#include "packet.h"
#include "packet-ip.h"
#include "packet-ipv6.h"
*
* Jason Lango <jal@netapp.com>
*
- * $Id: packet-rtcp.h,v 1.1 2000/04/21 01:45:57 guy Exp $
+ * $Id: packet-rtcp.h,v 1.2 2000/08/11 13:34:01 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_RTCP_H__
+#define __PACKET_RTCP_H__
+
void dissect_rtcp(const u_char *, int, frame_data *, proto_tree *);
+
+#endif
*
* Jason Lango <jal@netapp.com>
*
- * $Id: packet-rtp.h,v 1.1 2000/04/21 01:45:56 guy Exp $
+ * $Id: packet-rtp.h,v 1.2 2000/08/11 13:34:01 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_RTP_H__
+#define __PACKET_RTP_H__
+
void dissect_rtp(const u_char *, int, frame_data *, proto_tree *);
+
+#endif
* Routines for Stream Control Transmission Protocol dissection
* Copyright 2000, Michael Tüxen <Michael.Tuexen@icn.siemens.de>
*
- * $Id: packet-sctp.c,v 1.3 2000/08/07 03:21:09 guy Exp $
+ * $Id: packet-sctp.c,v 1.4 2000/08/11 13:35:00 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
# include <netinet/in.h>
#endif
+#include <string.h>
+#include <glib.h>
+
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
-#include <string.h>
-#include <glib.h>
#include "packet.h"
-
#include "packet-ip.h"
/* Initialize the protocol and registered fields */
/* packet-sdp.h
*
- * $Id: packet-sdp.h,v 1.1 2000/02/15 21:03:08 gram Exp $
+ * $Id: packet-sdp.h,v 1.2 2000/08/11 13:34:00 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_SDP_H__
+#define __PACKET_SDP_H__
void dissect_sdp(const u_char *, int, frame_data *, proto_tree *);
+
+#endif
* Routines for smb packet dissection
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
*
- * $Id: packet-smb-common.h,v 1.2 2000/05/11 08:15:45 gram Exp $
+ * $Id: packet-smb-common.h,v 1.3 2000/08/11 13:34:00 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_SMB_COMMON_H__
+#define __PACKET_SMB_COMMON_H__
+
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
frame_data *fd, proto_tree *tree);
void dissect_smb_unknown( const u_char *pd, int offset, frame_data *fd,
proto_tree *tree);
+
+#endif
/* packet-smb.h
*
- * $Id: packet-smb.h,v 1.1 2000/02/15 21:03:09 gram Exp $
+ * $Id: packet-smb.h,v 1.2 2000/08/11 13:33:52 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_SMB_H__
+#define __PACKET_SMB_H__
void dissect_smb(const u_char *pd, int offset, frame_data *fd, proto_tree *tree, int max_data);
+
+#endif
/* packet-sna.h
* Definitions for SNA dissection.
*
- * $Id: packet-sna.h,v 1.3 2000/04/17 00:32:43 guy Exp $
+ * $Id: packet-sna.h,v 1.4 2000/08/11 13:34:00 deniel Exp $
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_SNA_H__
+#define __PACKET_SNA_H__
+
/*
* Structure used to represent an FID Type 4 address; gives the layout of the
* data pointed to by an AT_SNA "address" structure if the size is
* Routine to take an SNA FID Type 4 address and generate a string.
*/
extern gchar *sna_fid_type_4_addr_to_str(const struct sna_fid_type_4_addr *addrp);
+
+#endif
* Exported routines for SNMP (simple network management protocol)
* D.Jorand (c) 1998
*
- * $Id: packet-snmp.h,v 1.4 2000/05/30 03:35:55 guy Exp $
+ * $Id: packet-snmp.h,v 1.5 2000/08/11 13:34:00 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_SNMP_H__
+#define __PACKET_SNMP_H__
+
/*
* Guts of the SNMP dissector - exported for use by protocols such as
* ILMI.
*/
void dissect_snmp_pdu(const u_char *, int, frame_data *, proto_tree *tree,
char *, int, gint);
+
+#endif
* Routines for socks versions 4 &5 packet dissection
* Copyright 2000, Jeffrey C. Foster <jfoste@woodward.com>
*
- * $Id: packet-socks.c,v 1.8 2000/08/07 03:21:12 guy Exp $
+ * $Id: packet-socks.c,v 1.9 2000/08/11 13:34:59 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <stdio.h>
#include <string.h>
#include <glib.h>
+
+#ifdef NEED_SNPRINTF_H
+# include "snprintf.h"
+#endif
+
#include "packet.h"
#include "resolv.h"
#include "globals.h"
#include "packet-tcp.h"
#include "packet-udp.h"
-#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
-# include "snprintf.h"
-#endif
-
-
#define CHECK_PACKET_LENGTH(X) if (!BYTES_ARE_IN_FRAME(offset, X)){ \
proto_tree_add_text(tree, NullTVB, offset, 0, "*** FRAME TOO SHORT ***"); \
* In particular I have not had an opportunity to see how it
* responds to SRVLOC over TCP.
*
- * $Id: packet-srvloc.c,v 1.12 2000/08/07 03:21:13 guy Exp $
+ * $Id: packet-srvloc.c,v 1.13 2000/08/11 13:34:57 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
# include <netinet/in.h>
#endif
+#include <string.h>
+#include <time.h>
+#include <glib.h>
+
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
-#include <string.h>
-#include <time.h>
-#include <glib.h>
#include "packet.h"
#include "packet-ipv6.h"
/* packet-sscop.h
*
- * $Id: packet-sscop.h,v 1.2 2000/05/29 08:57:40 guy Exp $
+ * $Id: packet-sscop.h,v 1.3 2000/08/11 13:33:59 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_SSCOP_H__
+#define __PACKET_SSCOP_H__
+
void dissect_sscop(tvbuff_t *, packet_info *, proto_tree *);
+
+#endif
-/* packet-stat.h */
-/* $Id: packet-stat.h,v 1.1 1999/11/11 21:22:00 nneul Exp $ */
+/* packet-stat.h
+ *
+ * $Id: packet-stat.h,v 1.2 2000/08/11 13:33:59 deniel Exp $
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@zing.org>
+ * Copyright 1998 Gerald Combs
+ *
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ */
#ifndef PACKET_STAT_H
#define PACKET_STAT_H
/* packet-tcp.c
* Routines for TCP packet disassembly
*
- * $Id: packet-tcp.c,v 1.79 2000/08/07 03:21:15 guy Exp $
+ * $Id: packet-tcp.c,v 1.80 2000/08/11 13:34:55 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <stdio.h>
#include <glib.h>
-#include "globals.h"
-#include "resolv.h"
-#include "follow.h"
-#include "prefs.h"
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
+#include "globals.h"
+#include "resolv.h"
+#include "follow.h"
+#include "prefs.h"
#include "plugins.h"
#include "packet-tcp.h"
-
#include "packet-ip.h"
#include "conversation.h"
/* packet-tcp.h
*
- * $Id: packet-tcp.h,v 1.4 2000/04/20 07:05:57 guy Exp $
+ * $Id: packet-tcp.h,v 1.5 2000/08/11 13:33:59 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_TCP_H__
+#define __PACKET_TCP_H__
+
/* Urgent pointer value for the current packet. */
extern guint16 tcp_urgent_pointer;
extern void decode_tcp_ports(const u_char *, int, frame_data *,
proto_tree *, int, int);
+
+#endif
/* packet-tftp.h
*
- * $Id: packet-tftp.h,v 1.1 2000/02/15 21:03:18 gram Exp $
+ * $Id: packet-tftp.h,v 1.2 2000/08/11 13:33:58 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_TFTP_H__
+#define __PACKET_TFTP_H__
void dissect_tftp(const u_char *, int, frame_data *, proto_tree *);
+
+#endif
/* packet-tr.h
*
- * $Id: packet-tr.h,v 1.2 2000/05/15 06:22:07 gram Exp $
+ * $Id: packet-tr.h,v 1.3 2000/08/11 13:33:58 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_TR_H__
+#define __PACKET_TR_H__
+
void capture_tr(const u_char *, int, packet_counts *);
void dissect_tr(tvbuff_t *, packet_info *, proto_tree *);
+
+#endif
/* packet-trmac.h
*
- * $Id: packet-trmac.h,v 1.2 2000/06/20 03:05:37 gram Exp $
+ * $Id: packet-trmac.h,v 1.3 2000/08/11 13:33:58 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_TRMAC_H__
+#define __PACKET_TRMAC_H__
void dissect_trmac(tvbuff_t *, packet_info *, proto_tree *);
+
+#endif
/* packet-udp.h
*
- * $Id: packet-udp.h,v 1.3 2000/04/20 07:05:58 guy Exp $
+ * $Id: packet-udp.h,v 1.4 2000/08/11 13:33:58 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_UDP_H__
+#define __PACKET_UDP_H__
+
extern void decode_udp_ports(const u_char *, int, frame_data *,
proto_tree *, int, int);
+
+#endif
/* packet-v120.h
*
- * $Id: packet-v120.h,v 1.4 2000/05/31 03:58:55 gram Exp $
+ * $Id: packet-v120.h,v 1.5 2000/08/11 13:33:57 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_V120_H__
+#define __PACKET_V120_H__
+
void dissect_v120(tvbuff_t *, packet_info *, proto_tree *);
+
+#endif
/* packet-vlan.h
*
- * $Id: packet-vlan.h,v 1.2 2000/04/16 22:59:37 guy Exp $
+ * $Id: packet-vlan.h,v 1.3 2000/08/11 13:33:57 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_VLAN_H__
+#define __PACKET_VLAN_H__
+
void capture_vlan(const u_char *, int, packet_counts *);
+
+#endif
/* packet-vtp.h
*
- * $Id: packet-vtp.h,v 1.1 2000/02/15 21:03:27 gram Exp $
+ * $Id: packet-vtp.h,v 1.2 2000/08/11 13:33:57 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_VTP_H__
+#define __PACKET_VTP_H__
void dissect_vtp(const u_char *, int, frame_data *, proto_tree *);
+
+#endif
/* packet-x11-declarations.h
*
- * $Id: packet-x11-declarations.h,v 1.1 2000/06/12 02:30:33 guy Exp $
+ * $Id: packet-x11-declarations.h,v 1.2 2000/08/11 13:33:54 deniel Exp $
*
* Put there so as to make packet-x11.c lighter. Generated from
* x11-list. See packet-x11.c
*/
+#ifndef __PACKET_X11_DECLARATIONS_H__
+#define __PACKET_X11_DECLARATIONS_H__
+
static int hf_x11_acceleration_denominator = -1;
static int hf_x11_acceleration_numerator = -1;
static int hf_x11_access_mode = -1;
static int hf_x11_window_value_mask_cursor = -1;
static int hf_x11_x = -1;
static int hf_x11_y = -1;
+
+#endif
/* packet-x11-keysym.h
*
- * $Id: packet-x11-keysym.h,v 1.1 2000/06/12 02:30:34 guy Exp $
+ * $Id: packet-x11-keysym.h,v 1.2 2000/08/11 13:33:55 deniel Exp $
*
* Put there so as to make packet-x11.c lighter. See packet-x11.c
*/
+#ifndef __PACKET_X11_KEYSYM_H__
+#define __PACKET_X11_KEYSYM_H__
+
static const value_string keysym_vals_source[] = {
{ 0, "NoSymbol" }, { 0x020, "space" }, { 0x021, "!" }, { 0x022, "\"" },
{ 0x023, "#" }, { 0x024, "$" }, { 0x025, "%" }, { 0x026, "&" },
{ 0xFFEC, "Super_R" }, { 0xFFED, "Hyper_L" }, { 0xFFEE, "Hyper_R" }, { 0xFFFF, "Delete" },
{ 0xFFFFFF, "VoidSymbol" }, { 0, NULL }
};
+
+#endif
/* packet-x25.h
*
- * $Id: packet-x25.h,v 1.6 2000/05/25 21:34:58 oabad Exp $
+ * $Id: packet-x25.h,v 1.7 2000/08/11 13:33:55 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PACKET_X25_H__
+#define __PACKET_X25_H__
+
void dissect_x25(tvbuff_t *, packet_info *, proto_tree *);
+
+#endif
-/* packet-ypbind.h */
-/* $Id: packet-ypbind.h,v 1.1 1999/11/10 17:23:54 nneul Exp $ */
+/* packet-ypbind.h
+ *
+ * $Id: packet-ypbind.h,v 1.2 2000/08/11 13:33:53 deniel Exp $
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@zing.org>
+ * Copyright 1998 Gerald Combs
+ *
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ */
#ifndef PACKET_YPBIND_H
#define PACKET_YPBIND_H
-/* packet-ypserv.h */
-/* $Id: packet-ypserv.h,v 1.1 1999/11/10 17:23:54 nneul Exp $ */
+/* packet-ypserv.h
+ *
+ * $Id: packet-ypserv.h,v 1.2 2000/08/11 13:33:53 deniel Exp $
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@zing.org>
+ * Copyright 1998 Gerald Combs
+ *
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ */
#ifndef PACKET_YPSERV_H
#define PACKET_YPSERV_H
-/* packet-ypxfr.h */
-/* $Id: packet-ypxfr.h,v 1.1 1999/11/10 17:23:55 nneul Exp $ */
+/* packet-ypxfr.h
+ *
+ * $Id: packet-ypxfr.h,v 1.2 2000/08/11 13:33:52 deniel Exp $
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@zing.org>
+ * Copyright 1998 Gerald Combs
+ *
+ *
+ * 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.
+ *
+ * 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.
+ *
+ * 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.
+ */
#ifndef PACKET_YPXFR_H
#define PACKET_YPXFR_H
/* packet.c
* Routines for packet disassembly
*
- * $Id: packet.c,v 1.97 2000/08/07 03:21:24 guy Exp $
+ * $Id: packet.c,v 1.98 2000/08/11 13:34:33 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <stdio.h>
#include <stdlib.h>
+
+#ifdef HAVE_STDARG_H
#include <stdarg.h>
+#endif
+
#include <string.h>
#include <ctype.h>
#include <time.h>
#include "packet-v120.h"
#include "packet-vines.h"
-#ifndef __RESOLV_H__
#include "resolv.h"
-#endif
-
-#ifndef __TVBUFF_H__
#include "tvbuff.h"
-#endif
-
#include "plugins.h"
extern capture_file cfile;
/* packet.h
* Definitions for packet disassembly structures and routines
*
- * $Id: packet.h,v 1.192 2000/08/10 07:58:43 guy Exp $
+ * $Id: packet.h,v 1.193 2000/08/11 13:34:38 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#ifndef __PACKET_H__
#define __PACKET_H__
-#ifndef __WTAP_H__
#include "wiretap/wtap.h"
-#endif
-
-#ifndef __PROTO_H__
#include "proto.h"
-#endif
-
-#ifndef __TVBUFF_H__
#include "tvbuff.h"
-#endif
-
/* Pointer versions of ntohs and ntohl. Given a pointer to a member of a
* byte array, returns the value of the two or four bytes at the pointer.
/* plugins.c
* plugin routines
*
- * $Id: plugins.c,v 1.20 2000/08/03 01:54:44 gram Exp $
+ * $Id: plugins.c,v 1.21 2000/08/11 13:34:47 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <string.h>
#include <stdlib.h>
+
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
+
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
/* plugins.h
* definitions for plugins structures
*
- * $Id: plugins.h,v 1.6 2000/03/31 21:42:24 oabad Exp $
+ * $Id: plugins.h,v 1.7 2000/08/11 13:34:27 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#endif
#endif /* HAVE_CONFIG_H */
-#ifndef __DFILTER_H__
#include "dfilter.h"
-#endif
-
-#ifndef __PACKET_H__
#include "packet.h"
-#endif
#ifdef HAVE_WINSOCK_H
#include <winsock.h>
/* plugin_api.h
* Routines for Ethereal plugins.
*
- * $Id: plugin_api.h,v 1.6 2000/05/31 18:32:14 gram Exp $
+ * $Id: plugin_api.h,v 1.7 2000/08/11 13:37:21 deniel Exp $
*
* Ethereal - Network traffic analyzer
* Copyright 2000 by Gilbert Ramirez <gram@xiexie.org>
#endif
-#ifndef __PACKET_H__
#include "packet.h"
-#endif
-
#include "dfilter.h"
#include "plugin_table.h"
/* prefs.c
* Routines for handling preferences
*
- * $Id: prefs.c,v 1.33 2000/08/07 22:31:09 guy Exp $
+ * $Id: prefs.c,v 1.34 2000/08/11 13:34:44 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include <unistd.h>
#endif
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
#include "globals.h"
#include "packet.h"
/* print.h
* Definitions for printing packet analysis trees.
*
- * $Id: print.h,v 1.19 2000/08/03 12:44:21 gram Exp $
+ * $Id: print.h,v 1.20 2000/08/11 13:34:26 deniel Exp $
*
* Gilbert Ramirez <gram@xiexie.org>
*
#ifndef __PRINT_H__
#define __PRINT_H__
-#ifndef __PACKET_H__
#include "packet.h"
-#endif
#define PR_FMT_TEXT 0
#define PR_FMT_PS 1
/* proto.c
* Routines for protocol tree
*
- * $Id: proto.c,v 1.75 2000/08/10 19:41:45 guy Exp $
+ * $Id: proto.c,v 1.76 2000/08/11 13:35:33 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
# include <sys/types.h>
#endif
-#ifndef _STDIO_H
#include <stdio.h>
-#endif
-
-#ifndef _STRING_H
#include <string.h>
-#endif
-
-#ifndef __G_LIB_H__
#include <glib.h>
-#endif
-#ifndef __PROTO_H__
-#include "proto.h"
+#ifdef NEED_SNPRINTF_H
+# include "snprintf.h"
#endif
-#ifndef __PACKET_H__
#include "packet.h"
-#endif
-
-#ifndef __RESOLV_H__
#include "resolv.h"
-#endif
-
-#ifndef __REGISTER_H__
#include "register.h"
-#endif
-
#include "packet-ipv6.h"
-
-#ifdef NEED_SNPRINTF_H
-# include "snprintf.h"
-#endif
+#include "proto.h"
#define cVALS(x) (const value_string*)(x)
/* proto.h
* Definitions for protocol display
*
- * $Id: proto.h,v 1.38 2000/08/10 16:04:32 deniel Exp $
+ * $Id: proto.h,v 1.39 2000/08/11 13:34:36 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#define __PROTO_H__
#ifdef HAVE_SYS_TIME_H
-# ifndef _SYS_TIME_H
-# include <sys/time.h>
-# endif
+# include <sys/time.h>
#endif
#ifdef HAVE_STDARG_H
# include <winsock.h>
#endif
-#ifndef __IPV4_H__
#include "ipv4.h"
-#endif
-
-#ifndef __TVBUFF_H__
#include "tvbuff.h"
-#endif
/* needs glib.h */
typedef GNode proto_tree;
* Proto Tree TVBuff cursor
* Gilbert Ramirez <gram@xiexie.org>
*
- * $Id: ptvcursor.c,v 1.1 2000/07/28 20:03:43 gram Exp $
+ * $Id: ptvcursor.c,v 1.2 2000/08/11 13:34:32 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#ifndef __PTVCURSOR_H__
#include "ptvcursor.h"
-#endif
struct ptvcursor {
* Proto Tree TVBuff cursor
* Gilbert Ramirez <gram@xiexie.org>
*
- * $Id: ptvcursor.h,v 1.1 2000/07/28 20:03:43 gram Exp $
+ * $Id: ptvcursor.h,v 1.2 2000/08/11 13:34:25 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __PTVCURSOR_H__
+#define __PTVCURSOR_H__
+
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <glib.h>
-
-#ifndef __PACKET_H__
#include "packet.h"
-#endif
-
-#ifndef __PTVCURSOR_H__
-#define __PTVCURSOR_H__
typedef struct ptvcursor ptvcursor_t;
Alain Magloire: alainm@rcsm.ee.mcgill.ca
*/
-#if defined(HAVE_STDARG_H) && defined(__STDC__) && __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
-
#include <stdlib.h> /* for atoi() */
#include <ctype.h>
# include "config.h"
#endif
-#include "snprintf-imp.h"
#include "snprintf.h"
+#include "snprintf-imp.h"
/*
* Find the nth power of 10
+
+#ifndef __ETHEREAL_SNPRINTF_H__
+#define __ETHEREAL_SNPRINTF_H__
+
+#if defined(HAVE_STDARG_H) && defined(__STDC__) && __STDC__
+# include <stdarg.h>
+#else
+# include <varargs.h>
+#endif
+
extern int vsnprintf(char *string, size_t length, const char * format,
va_list args);
extern int snprintf(char *string, size_t length, const char * format,
int va_alist);
#endif
+
+#endif
/* strerror.h
*
- * $Id: strerror.h,v 1.1 1999/06/14 21:46:36 guy Exp $
+ * $Id: strerror.h,v 1.2 2000/08/11 13:33:51 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __STRERROR_H__
+#define __STRERROR_H__
+
/*
* Version of "strerror()", for the benefit of OSes that don't have it
* (e.g., SunOS 4.x).
*/
extern char *strerror(int);
+
+#endif
/* tethereal.c
*
- * $Id: tethereal.c,v 1.38 2000/08/03 12:44:21 gram Exp $
+ * $Id: tethereal.c,v 1.39 2000/08/11 13:34:49 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#endif
#include <errno.h>
+
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
+
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
+
+#ifdef HAVE_FCNTL_H
#include <fcntl.h>
+#endif
+
#include <signal.h>
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
* the data of a backing tvbuff, or can be a composite of
* other tvbuffs.
*
- * $Id: tvbuff.c,v 1.6 2000/08/10 07:58:44 guy Exp $
+ * $Id: tvbuff.c,v 1.7 2000/08/11 13:34:31 deniel Exp $
*
* Copyright (c) 2000 by Gilbert Ramirez <gram@xiexie.org>
*
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#ifndef __TVBUFF_H__
#include "tvbuff.h"
-#endif
#include <string.h>
* the data of a backing tvbuff, or can be a composite of
* other tvbuffs.
*
- * $Id: tvbuff.h,v 1.6 2000/08/10 07:58:44 guy Exp $
+ * $Id: tvbuff.h,v 1.7 2000/08/11 13:34:24 deniel Exp $
*
* Copyright (c) 2000 by Gilbert Ramirez <gram@xiexie.org>
*
#ifndef __TVBUFF_H__
#define __TVBUFF_H__
-#ifndef __GLIB_H__
#include <glib.h>
-#endif
-
-#ifndef __EXCEPTIONS_H__
#include "exceptions.h"
-#endif
typedef struct tvbuff tvbuff_t;
/* util.c
* Utility routines
*
- * $Id: util.c,v 1.40 2000/07/31 04:53:31 guy Exp $
+ * $Id: util.c,v 1.41 2000/08/11 13:34:53 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#endif
#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
# include "snprintf.h"
#endif
/* ascend.c
*
- * $Id: ascend.c,v 1.16 2000/05/19 23:06:47 gram Exp $
+ * $Id: ascend.c,v 1.17 2000/08/11 13:32:37 deniel Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
#include "ascend-int.h"
#include "file_wrappers.h"
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
/* ascend.h
*
- * $Id: ascend.h,v 1.6 2000/05/18 09:09:24 guy Exp $
+ * $Id: ascend.h,v 1.7 2000/08/11 13:32:35 deniel Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
*
*/
+#ifndef __ASCEND_H__
+#define __ASCEND_H__
+
#define ASCEND_MAX_DATA_ROWS 8
#define ASCEND_MAX_DATA_COLS 16
#define ASCEND_MAX_PKT_LEN (ASCEND_MAX_DATA_ROWS * ASCEND_MAX_DATA_COLS)
int ascend_open(wtap *wth, int *err);
+
+#endif
/* buffer.c
*
- * $Id: buffer.c,v 1.9 2000/07/31 04:15:58 guy Exp $
+ * $Id: buffer.c,v 1.10 2000/08/11 13:32:37 deniel Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
#include <string.h>
#include <glib.h>
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
#include "buffer.h"
/* buffer.h
*
- * $Id: buffer.h,v 1.6 2000/07/31 04:15:58 guy Exp $
+ * $Id: buffer.h,v 1.7 2000/08/11 13:32:35 deniel Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
*
*/
+#ifndef __W_BUFFER_H__
+#define __W_BUFFER_H__
+
#define SOME_FUNCTIONS_ARE_DEFINES
#ifdef HAVE_WINSOCK_H
u_char* buffer_start_ptr(Buffer* buffer);
u_char* buffer_end_ptr(Buffer* buffer);
#endif
+
+#endif
/* Define if you have the z library (-lz). */
/*#define HAVE_LIBZ 1*/
+/* Define if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define if you have the <fcntl.h> header file. */
+#define HAVE_FCNTL_H 1
+
/* Name of package */
#define PACKAGE "libwtap.a"
-# $Id: configure.in,v 1.21 2000/02/12 08:54:32 guy Exp $
+# $Id: configure.in,v 1.22 2000/08/11 13:32:35 deniel Exp $
dnl
dnl Process this file with autoconf 2.13 or later to produce a
dnl configure script; 2.12 doesn't generate a "configure" script that
dnl Checks for header files
AC_HEADER_STDC
-AC_CHECK_HEADERS(sys/time.h netinet/in.h unistd.h)
+AC_CHECK_HEADERS(sys/time.h netinet/in.h unistd.h fcntl.h sys/stat.h sys/types.h)
AC_CANONICAL_HOST
/* csids.h
*
- * $Id: csids.h,v 1.1 2000/08/08 22:16:42 mhall Exp $
+ * $Id: csids.h,v 1.2 2000/08/11 13:32:35 deniel Exp $
*
* Copyright (c) 2000 by Mike Hall <mlh@io.com>
* Copyright (c) Cisco Systems
*
*/
+#ifndef __CSIDS_H__
+#define __CSIDS_H__
+
int csids_open(wtap *wth, int *err);
+
+#endif
/* file.c
*
- * $Id: file.c,v 1.59 2000/08/08 22:16:42 mhall Exp $
+ * $Id: file.c,v 1.60 2000/08/11 13:32:36 deniel Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
#endif
#include <stdio.h>
-#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
+
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
+
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
+
#include <errno.h>
#ifdef HAVE_IO_H
/* i4btrace.h
*
- * $Id: i4btrace.h,v 1.1 1999/12/12 22:40:09 gram Exp $
+ * $Id: i4btrace.h,v 1.2 2000/08/11 13:32:35 deniel Exp $
*
* Wiretap Library
* Copyright (c) 1999 by Bert Driehuis <driehuis@playbeing.org>
*
*/
+#ifndef __I4BTRACE_H__
+#define __I4BTRACE_H__
+
int i4btrace_open(wtap *wth, int *err);
+
+#endif
/* iptrace.h
*
- * $Id: iptrace.h,v 1.4 2000/01/22 06:22:38 guy Exp $
+ * $Id: iptrace.h,v 1.5 2000/08/11 13:32:35 deniel Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
*
*/
+#ifndef __IPTRACE_H__
+#define __IPTRACE_H__
+
int iptrace_open(wtap *wth, int *err);
+
+#endif
/* lanalyzer.h
*
- * $Id: lanalyzer.h,v 1.3 2000/01/22 06:22:38 guy Exp $
+ * $Id: lanalyzer.h,v 1.4 2000/08/11 13:32:35 deniel Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
*
*/
+#ifndef __LANALYZER_H__
+#define __LANALYZER_H__
+
int lanalyzer_open(wtap *wth, int *err);
+
+#endif
/* libpcap.h
*
- * $Id: libpcap.h,v 1.8 2000/07/30 16:54:12 oabad Exp $
+ * $Id: libpcap.h,v 1.9 2000/08/11 13:32:35 deniel Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
*
*/
+#ifndef __W_LIBPCAP_H__
+#define __W_LIBPCAP_H__
+
/* Magic numbers in "libpcap" files.
"libpcap" file records are written in the byte order of the host that
int libpcap_open(wtap *wth, int *err);
gboolean libpcap_dump_open(wtap_dumper *wdh, int *err);
int libpcap_dump_can_write_encap(int filetype, int encap);
+
+#endif
/* netmon.h
*
- * $Id: netmon.h,v 1.6 2000/01/22 06:22:40 guy Exp $
+ * $Id: netmon.h,v 1.7 2000/08/11 13:32:34 deniel Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
*
*/
+#ifndef __NETMON_H__
+#define __NETMON_H__
+
int netmon_open(wtap *wth, int *err);
gboolean netmon_dump_open(wtap_dumper *wdh, int *err);
int netmon_dump_can_write_encap(int filetype, int encap);
+
+#endif
/* nettl.h
*
- * $Id: nettl.h,v 1.4 2000/02/17 21:08:15 oabad Exp $
+ * $Id: nettl.h,v 1.5 2000/08/11 13:32:34 deniel Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
*
*/
+#ifndef __NETTL_H__
+#define __NETTL_H__
+
#define NETTL_SUBSYS_NS_LS_LOGGING 0x00
#define NETTL_SUBSYS_NS_LS_NFT 0x01
#define NETTL_SUBSYS_NS_LS_LOOPBACK 0x02
#define NETTL_SUBSYS_EM 0x7C
int nettl_open(wtap *wth, int *err);
+
+#endif
/* netxray.h
*
- * $Id: netxray.h,v 1.4 2000/01/22 06:22:41 guy Exp $
+ * $Id: netxray.h,v 1.5 2000/08/11 13:32:34 deniel Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
*
*/
+#ifndef __NETXRAY_H__
+#define __NETXRAY_H__
+
int netxray_open(wtap *wth, int *err);
gboolean netxray_dump_open_1_1(wtap_dumper *wdh, int *err);
int netxray_dump_can_write_encap(int filetype, int encap);
+
+#endif
/* ngsniffer.h
*
- * $Id: ngsniffer.h,v 1.7 2000/01/22 06:22:43 guy Exp $
+ * $Id: ngsniffer.h,v 1.8 2000/08/11 13:32:34 deniel Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
*
*/
+#ifndef __NGSNIFFER_H__
+#define __NGSNIFFER_H__
+
int ngsniffer_open(wtap *wth, int *err);
gboolean ngsniffer_dump_open(wtap_dumper *wdh, int *err);
int ngsniffer_dump_can_write_encap(int filetype, int encap);
+
+#endif
/* radcom.h
*
- * $Id: radcom.h,v 1.4 2000/01/22 06:22:43 guy Exp $
+ * $Id: radcom.h,v 1.5 2000/08/11 13:32:34 deniel Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
*
*/
+#ifndef __RADCOM_H__
+#define __RADCOM_H__
+
int radcom_open(wtap *wth, int *err);
+
+#endif
/* snoop.h
*
- * $Id: snoop.h,v 1.7 2000/01/22 06:22:44 guy Exp $
+ * $Id: snoop.h,v 1.8 2000/08/11 13:32:34 deniel Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
*
*/
+#ifndef __W_SNOOP_H__
+#define __W_SNOOP_H__
+
int snoop_open(wtap *wth, int *err);
gboolean snoop_dump_open(wtap_dumper *wdh, int *err);
int snoop_dump_can_write_encap(int filetype, int encap);
+
+#endif
/* toshiba.h
*
- * $Id: toshiba.h,v 1.2 2000/05/18 09:09:48 guy Exp $
+ * $Id: toshiba.h,v 1.3 2000/08/11 13:32:33 deniel Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
*
*/
+#ifndef __W_TOSHIBA_H__
+#define __W_TOSHIBA_H__
+
int toshiba_open(wtap *wth, int *err);
+
+#endif
/* wtap-int.h
*
- * $Id: wtap-int.h,v 1.5 2000/08/11 07:28:12 guy Exp $
+ * $Id: wtap-int.h,v 1.6 2000/08/11 13:32:36 deniel Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
#ifndef __WTAP_INT_H__
#define __WTAP_INT_H__
-
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
/* wtap.h
*
- * $Id: wtap.h,v 1.76 2000/08/08 22:16:42 mhall Exp $
+ * $Id: wtap.h,v 1.77 2000/08/11 13:32:37 deniel Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
*/
#define WTAP_MAX_PACKET_SIZE 65535
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
* Define *DLC frame types, and routine to dissect the control field of
* a *DLC frame.
*
- * $Id: xdlc.h,v 1.13 2000/05/31 03:58:56 gram Exp $
+ * $Id: xdlc.h,v 1.14 2000/08/11 13:33:50 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __XDLC_H__
+#define __XDLC_H__
+
/*
* Low-order bits of first (extended) or only (basic) octet of control
* field, specifying the frame type.
int dissect_xdlc_control(tvbuff_t *tvb, int offset, packet_info *pinfo,
proto_tree *xdlc_tree, int hf_xdlc_control, gint ett_xdlc_control,
int is_response, int extended);
+
+#endif