1998-09-16 02:39:15 +00:00
|
|
|
/* capture.h
|
|
|
|
* Definitions for packet capture windows
|
|
|
|
*
|
1999-08-18 16:28:22 +00:00
|
|
|
* $Id: capture.h,v 1.13 1999/08/18 16:28:22 gram Exp $
|
1998-09-16 03:22:19 +00:00
|
|
|
*
|
1998-09-16 02:39:15 +00:00
|
|
|
* 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 __CAPTURE_H__
|
|
|
|
#define __CAPTURE_H__
|
|
|
|
|
1999-07-09 04:18:36 +00:00
|
|
|
#ifdef HAVE_LIBPCAP
|
|
|
|
|
|
|
|
#ifndef lib_pcap_h
|
|
|
|
#include <pcap.h>
|
|
|
|
#endif
|
|
|
|
|
1999-08-18 16:28:22 +00:00
|
|
|
/* The version of pcap.h that comes with some systems is missing these
|
|
|
|
* #defines.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DLT_RAW
|
|
|
|
#define DLT_RAW 12
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef DLT_SLIP_BSDOS
|
|
|
|
#define DLT_SLIP_BSDOS 13
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef DLT_PPP_BSDOS
|
|
|
|
#define DLT_PPP_BSDOS 14
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
1998-09-16 02:39:15 +00:00
|
|
|
void capture_prep_cb(GtkWidget *, gpointer);
|
1999-04-06 16:24:50 +00:00
|
|
|
void capture(void);
|
1998-09-16 02:39:15 +00:00
|
|
|
|
1999-07-09 04:18:36 +00:00
|
|
|
#endif /* HAVE_LIBPCAP */
|
1998-09-16 02:39:15 +00:00
|
|
|
#endif /* capture.h */
|