xref: /freebsd/sbin/ipf/common/ipt.h (revision e92ffd9b626833ebdbf2742c8ffddc6cd94b963e)
1 /*	$FreeBSD$	*/
2 
3 /*
4  * Copyright (C) 2012 by Darren Reed.
5  *
6  * See the IPFILTER.LICENCE file for details on licencing.
7  *
8  * $Id$
9  */
10 
11 #ifndef	__IPT_H__
12 #define	__IPT_H__
13 
14 #ifndef	__P
15 # define P_DEF
16 # ifdef	__STDC__
17 #  define	__P(x) x
18 # else
19 #  define	__P(x) ()
20 # endif
21 #endif
22 
23 #include <fcntl.h>
24 
25 
26 struct	ipread	{
27 	int	(*r_open)(char *);
28 	int	(*r_close)(void);
29 	int	(*r_readip)(mb_t *, char **, int *);
30 	int	r_flags;
31 };
32 
33 #define	R_DO_CKSUM	0x01
34 
35 #ifdef P_DEF
36 # undef	__P
37 # undef	P_DEF
38 #endif
39 
40 #endif /* __IPT_H__ */
41