summaryrefslogtreecommitdiffstats
path: root/libipulog/include/libipulog/libipulog.h
diff options
context:
space:
mode:
authorlaforge <laforge>2003-05-04 10:00:10 +0000
committerlaforge <laforge>2003-05-04 10:00:10 +0000
commit7242913eb71a31b229ad6e42130fc9c10a53e1d7 (patch)
treee296b95dc328d91c2451abe74e9cc3f19472001f /libipulog/include/libipulog/libipulog.h
parentaa4ccf28aac762d752f283775b1b1d7fff3847c0 (diff)
add support for setting of SO_RCVBUF socket option to libipulog and ulogd (rmem config file entry)
Diffstat (limited to 'libipulog/include/libipulog/libipulog.h')
-rw-r--r--libipulog/include/libipulog/libipulog.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/libipulog/include/libipulog/libipulog.h b/libipulog/include/libipulog/libipulog.h
index 8a023c1..307510c 100644
--- a/libipulog/include/libipulog/libipulog.h
+++ b/libipulog/include/libipulog/libipulog.h
@@ -1,7 +1,7 @@
#ifndef _LIBIPULOG_H
#define _LIBIPULOG_H
-/* $Id: libipulog.h,v 1.5 2002/07/30 07:04:12 laforge Exp $ */
+/* $Id: libipulog.h,v 1.6 2002/07/30 07:23:36 laforge Exp $ */
#include <errno.h>
#include <unistd.h>
@@ -24,7 +24,7 @@ extern int ipulog_errno;
u_int32_t ipulog_group2gmask(u_int32_t group);
-struct ipulog_handle *ipulog_create_handle(u_int32_t gmask);
+struct ipulog_handle *ipulog_create_handle(u_int32_t gmask, u_int32_t rmem);
void ipulog_destroy_handle(struct ipulog_handle *h);
@@ -39,4 +39,20 @@ char *ipulog_strerror(int errcode);
void ipulog_perror(const char *s);
+enum
+{
+ IPULOG_ERR_NONE = 0,
+ IPULOG_ERR_IMPL,
+ IPULOG_ERR_HANDLE,
+ IPULOG_ERR_SOCKET,
+ IPULOG_ERR_BIND,
+ IPULOG_ERR_RECVBUF,
+ IPULOG_ERR_RECV,
+ IPULOG_ERR_NLEOF,
+ IPULOG_ERR_TRUNC,
+ IPULOG_ERR_INVGR,
+ IPULOG_ERR_INVNL,
+};
+#define IPULOG_MAXERR IPULOG_ERR_INVNL
+
#endif /* _LIBULOG_H */