Deleted Added
full compact
pcap-int.h (75110) pcap-int.h (98533)
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 *
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 * $FreeBSD: head/contrib/libpcap/pcap-int.h 75110 2001-04-03 04:32:48Z fenner $
34 * @(#) $Header: /tcpdump/master/libpcap/pcap-int.h,v 1.32 2000/12/21 10:29:23 guy Exp $ (LBL)
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 $
35 */
36
37#ifndef pcap_int_h
38#define pcap_int_h
39
40#ifdef __cplusplus
41extern "C" {
42#endif

--- 18 unchanged lines hidden (view full) ---

61 int use_bpf; /* using kernel filter */
62 u_long TotPkts; /* can't oflow for 79 hrs on ether */
63 u_long TotAccepted; /* count accepted by filter */
64 u_long TotDrops; /* count of dropped packets */
65 long TotMissed; /* missed by i/f during this run */
66 long OrigMissed; /* missed by i/f before this run */
67#ifdef linux
68 int sock_packet; /* using Linux 2.0 compatible interface */
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 */
69 int readlen; /* byte count to hand to "recvmsg()" */
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 ---
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 ---