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.18 96/11/27 18:43:09 leres Exp $ (LBL)
34 */
35
36#ifndef pcap_int_h
37#define pcap_int_h
38
39#ifdef __cplusplus
40extern "C" {
41#endif
--- 54 unchanged lines hidden (view full) ---
96 /*
97 * Placeholder for filter code if bpf not in kernel.
98 */
99 struct bpf_program fcode;
100
101 char errbuf[PCAP_ERRBUF_SIZE];
102};
103
104int yylex(void);
105
106#ifndef min
107#define min(a, b) ((a) > (b) ? (b) : (a))
108#endif
109
110/* XXX should these be in pcap.h? */
111int pcap_offline_read(pcap_t *, int, pcap_handler, u_char *);
112int pcap_read(pcap_t *, int cnt, pcap_handler, u_char *);
113
114/* Ultrix pads to make everything line up on a nice boundary */
115#if defined(ultrix) || defined(__alpha)
116#define PCAP_FDDIPAD 3
117#endif
118
119/* XXX */
120extern int pcap_fddipad;
121
122#ifdef __cplusplus
123}
124#endif
125
126#endif
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.18 96/11/27 18:43:09 leres Exp $ (LBL)
34 */
35
36#ifndef pcap_int_h
37#define pcap_int_h
38
39#ifdef __cplusplus
40extern "C" {
41#endif
--- 54 unchanged lines hidden (view full) ---
96 /*
97 * Placeholder for filter code if bpf not in kernel.
98 */
99 struct bpf_program fcode;
100
101 char errbuf[PCAP_ERRBUF_SIZE];
102};
103
104int yylex(void);
105
106#ifndef min
107#define min(a, b) ((a) > (b) ? (b) : (a))
108#endif
109
110/* XXX should these be in pcap.h? */
111int pcap_offline_read(pcap_t *, int, pcap_handler, u_char *);
112int pcap_read(pcap_t *, int cnt, pcap_handler, u_char *);
113
114/* Ultrix pads to make everything line up on a nice boundary */
115#if defined(ultrix) || defined(__alpha)
116#define PCAP_FDDIPAD 3
117#endif
118
119/* XXX */
120extern int pcap_fddipad;
121
122#ifdef __cplusplus
123}
124#endif
125
126#endif