1#ifndef _LIBIPULOG_H
2#define _LIBIPULOG_H
3
4/* libipulog.h,v 1.3 2001/05/21 19:15:16 laforge Exp */
5
6#include <errno.h>
7#include <unistd.h>
8#include <fcntl.h>
9#include <sys/types.h>
10#include <sys/socket.h>
11#include <sys/uio.h>
12#include <asm/types.h>
13#include <linux/netlink.h>
14#include <net/if.h>
15#include <linux/netfilter_ipv4/ipt_ULOG.h>
16
17#ifndef MSG_TRUNC
18#define MSG_TRUNC	0x20
19#endif
20
21struct ipulog_handle;
22
23u_int32_t ipulog_group2gmask(u_int32_t group);
24
25struct ipulog_handle *ipulog_create_handle(u_int32_t gmask);
26
27void ipulog_destroy_handle(struct ipulog_handle *h);
28
29ssize_t ipulog_read(struct ipulog_handle *h,
30		    unsigned char *buf, size_t len, int timeout);
31
32ulog_packet_msg_t *ipulog_get_packet(struct ipulog_handle *h,
33				     const unsigned char *buf,
34				     size_t len);
35
36void ipulog_perror(const char *s);
37
38#endif /* _LIBULOG_H */
39