diff options
author | Harald Welte <laforge@sunbeam.franken.de> | 2000-07-30 22:25:59 +0000 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2000-07-30 22:25:59 +0000 |
commit | fdf0433110f16b0534600af2d8980487c8342ac2 (patch) | |
tree | 551eb07cc4e5367f16b3f8114f0a2da4552ec30b /include/libipulog | |
parent | a8f033e89981d019c8a4214b9094f2b2411bea18 (diff) |
Harald Welte's ULOG target with tests (untested).
Diffstat (limited to 'include/libipulog')
-rw-r--r-- | include/libipulog/libipulog.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/libipulog/libipulog.h b/include/libipulog/libipulog.h new file mode 100644 index 00000000..9f920dd1 --- /dev/null +++ b/include/libipulog/libipulog.h @@ -0,0 +1,30 @@ +#ifndef _LIBIPULOG_H +#define _LIBIPULOG_H + +#include <errno.h> +#include <unistd.h> +#include <fcntl.h> +#include <sys/types.h> +#include <sys/socket.h> +#include <sys/uio.h> +#include <asm/types.h> +#include <linux/netlink.h> +#include <net/if.h> +#include <linux/netfilter_ipv4/ipt_ULOG.h> + +struct ipulog_handle; + +u_int32_t ipulog_group2gmask(u_int32_t group); + +struct ipulog_handle *ipulog_create_handle(u_int32_t gmask); + +void ipulog_destroy_handle(struct ipulog_handle *h); + +ssize_t ipulog_read(struct ipulog_handle *h, + unsigned char *buf, size_t len, int timeout); + +ulog_packet_msg_t *ipulog_get_packet(const unsigned char *buf); + +void ipulog_perror(const char *s); + +#endif /* _LIBULOG_H */ |