Deleted Added
full compact
pcap-int.h (17683) pcap-int.h (26175)
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 * @(#) $Header: pcap-int.h,v 1.17 96/07/12 22:45:52 leres Exp $ (LBL)
33 * @(#) $Header: pcap-int.h,v 1.18 96/11/27 18:43:09 leres Exp $ (LBL)
34 */
35
36#ifndef pcap_int_h
37#define pcap_int_h
38
39#include <pcap.h>
40
41/*

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

53 struct pcap_stat stat;
54 /*XXX*/
55 int use_bpf;
56 u_long TotPkts; /* can't oflow for 79 hrs on ether */
57 u_long TotAccepted; /* count accepted by filter */
58 u_long TotDrops; /* count of dropped packets */
59 long TotMissed; /* missed by i/f during this run */
60 long OrigMissed; /* missed by i/f before this run */
34 */
35
36#ifndef pcap_int_h
37#define pcap_int_h
38
39#include <pcap.h>
40
41/*

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

53 struct pcap_stat stat;
54 /*XXX*/
55 int use_bpf;
56 u_long TotPkts; /* can't oflow for 79 hrs on ether */
57 u_long TotAccepted; /* count accepted by filter */
58 u_long TotDrops; /* count of dropped packets */
59 long TotMissed; /* missed by i/f during this run */
60 long OrigMissed; /* missed by i/f before this run */
61#ifdef linux
62 int pad;
63 int skip;
64 char *device;
65#endif
61};
62
63struct pcap {
64 int fd;
65 int snapshot;
66 int linktype;
67 int tzoff; /* timezone offset */
68 int offset; /* offset for proper alignment */

--- 44 unchanged lines hidden ---
66};
67
68struct pcap {
69 int fd;
70 int snapshot;
71 int linktype;
72 int tzoff; /* timezone offset */
73 int offset; /* offset for proper alignment */

--- 44 unchanged lines hidden ---