4 /* libipulog.h,v 1.3 2001/05/21 19:15:16 laforge Exp */
10 #include <sys/socket.h>
12 #include <asm/types.h>
13 #include <linux/netlink.h>
15 #include <linux/netfilter_ipv4/ipt_ULOG.h>
17 /* FIXME: glibc sucks */
19 #define MSG_TRUNC 0x20
24 u_int32_t ipulog_group2gmask(u_int32_t group);
26 struct ipulog_handle *ipulog_create_handle(u_int32_t gmask);
28 void ipulog_destroy_handle(struct ipulog_handle *h);
30 ssize_t ipulog_read(struct ipulog_handle *h,
31 unsigned char *buf, size_t len, int timeout);
33 ulog_packet_msg_t *ipulog_get_packet(struct ipulog_handle *h,
34 const unsigned char *buf,
37 void ipulog_perror(const char *s);
39 #endif /* _LIBULOG_H */