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