1 /*
2  * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * Some portions Copyright (C) 2014 Cisco and/or its affiliates. All rights reserved.
6  * Some portions Copyright (C) 2010-2013 Sourcefire, Inc.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that: (1) source code distributions
10  * retain the above copyright notice and this paragraph in its entirety, (2)
11  * distributions including binary code include the above copyright notice and
12  * this paragraph in its entirety in the documentation or other materials
13  * provided with the distribution, and (3) all advertising materials mentioning
14  * features or use of this software display the following acknowledgement:
15  * ``This product includes software developed by the University of California,
16  * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
17  * the University nor the names of its contributors may be used to endorse
18  * or promote products derived from this software without specific prior
19  * written permission.
20  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
21  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
22  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
23  */
24 
25 #ifndef _SFBPF_INT_H
26 #define _SFBPF_INT_H
27 
28 #ifdef HAVE_VISIBILITY
29 #  define DAQ_SO_PUBLIC  __attribute__ ((visibility("default")))
30 #  define DAQ_SO_PRIVATE __attribute__ ((visibility("hidden")))
31 #else
32 #  define DAQ_SO_PUBLIC
33 #  define DAQ_SO_PRIVATE
34 #endif
35 
36 #include "sfbpf.h"
37 #include "sf-redefines.h"
38 
39 #define PCAP_ERRBUF_SIZE 256
40 
41 #ifndef strlcpy
42 #define strlcpy(x, y, z) \
43     (strncpy((x), (y), (z)), \
44      ((z) <= 0 ? 0 : ((x)[(z) - 1] = '\0')), \
45      strlen((y)))
46 #endif
47 
48 int yylex(void);
49 int sfbpf_strcasecmp(const char *s1, const char *s2);
50 
51 #define SFBPF_NETMASK_UNKNOWN        0xffffffff
52 
53 #endif /* _SFBPF_INT_H */
54