1/* 2 * Copyright (c) 1994, 1995, 1996 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * |
33 * @(#) $Header: /tcpdump/master/libpcap/pcap-int.h,v 1.33 2001/08/24 07:46:52 guy Exp $ (LBL) 34 * 35 * $FreeBSD: head/contrib/libpcap/pcap-int.h 98533 2002-06-21 01:38:14Z fenner $ |
36 */ 37 38#ifndef pcap_int_h 39#define pcap_int_h 40 41#ifdef __cplusplus 42extern "C" { 43#endif --- 18 unchanged lines hidden (view full) --- 62 int use_bpf; /* using kernel filter */ 63 u_long TotPkts; /* can't oflow for 79 hrs on ether */ 64 u_long TotAccepted; /* count accepted by filter */ 65 u_long TotDrops; /* count of dropped packets */ 66 long TotMissed; /* missed by i/f during this run */ 67 long OrigMissed; /* missed by i/f before this run */ 68#ifdef linux 69 int sock_packet; /* using Linux 2.0 compatible interface */ |
70 int timeout; /* timeout specified to pcap_open_live */ 71 int clear_promisc; /* must clear promiscuous mode when we close */ 72 int cooked; /* using SOCK_DGRAM rather than SOCK_RAW */ 73 int lo_ifindex; /* interface index of the loopback device */ 74 char *device; /* device name */ 75 struct pcap *next; /* list of open promiscuous sock_packet pcaps */ 76#endif 77}; --- 134 unchanged lines hidden --- |