diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-11-01 02:30:18 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-11-01 02:30:18 +0000 |
commit | 219b6cefa2380d726788967886907b9aa751dfdc (patch) | |
tree | 8cfd28761860f069df6b8e3ebe81a3dbee7dd825 /capture.h | |
parent | 9ac0cce997ff284748ba351ab6abcfffce0eede4 (diff) |
Based on a patch from Brian Fundakowski Feldman, add support for setting
link-layer type when capturing, using the "pcap_set_datalink()" and
related APIs.
svn path=/trunk/; revision=8848
Diffstat (limited to 'capture.h')
-rw-r--r-- | capture.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* capture.h * Definitions for packet capture windows * - * $Id: capture.h,v 1.36 2003/09/15 23:15:31 guy Exp $ + * $Id: capture.h,v 1.37 2003/11/01 02:30:14 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -50,6 +50,8 @@ typedef struct { guint32 ringbuffer_num_files; /* Number of ring buffer files */ gboolean has_ring_duration; /* TRUE if ring duration specified */ gint32 ringbuffer_duration; /* Switch file after n seconds */ + int linktype; /* Data link type to use, or -1 for + "use default" */ } capture_options; extern capture_options capture_opts; |