summaryrefslogtreecommitdiffstats
path: root/libipulog
diff options
context:
space:
mode:
authorlaforge <laforge>2005-04-17 15:16:18 +0000
committerlaforge <laforge>2005-04-17 15:16:18 +0000
commit29b6d125769417262b4841fe78e46813127a5d71 (patch)
tree8dd4760d07d83ad0309294eb1a07cef0e741b5ec /libipulog
parent9951ab9f02424d84ce1f176540a12285a5a11d69 (diff)
current working state (doesn't compile yet)
Diffstat (limited to 'libipulog')
-rw-r--r--libipulog/include/libipulog/libipulog.h4
-rw-r--r--libipulog/libipulog.c9
2 files changed, 10 insertions, 3 deletions
diff --git a/libipulog/include/libipulog/libipulog.h b/libipulog/include/libipulog/libipulog.h
index 307510c..a049d27 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.6 2002/07/30 07:23:36 laforge Exp $ */
+/* $Id$ */
#include <errno.h>
#include <unistd.h>
@@ -37,6 +37,8 @@ ulog_packet_msg_t *ipulog_get_packet(struct ipulog_handle *h,
char *ipulog_strerror(int errcode);
+int ipulog_get_fd(struct ipulog_handle *h);
+
void ipulog_perror(const char *s);
enum
diff --git a/libipulog/libipulog.c b/libipulog/libipulog.c
index b396829..eb2a747 100644
--- a/libipulog/libipulog.c
+++ b/libipulog/libipulog.c
@@ -1,5 +1,5 @@
/*
- * libipulog.c, $Revision: 1.11 $
+ * libipulog.c, $Revision$
*
* netfilter ULOG userspace library.
*
@@ -21,7 +21,7 @@
* This library is still under development, so be aware of sudden interface
* changes
*
- * $Id: libipulog.c,v 1.11 2003/05/04 10:00:10 laforge Exp $
+ * $Id$
*/
#include <stdlib.h>
@@ -253,3 +253,8 @@ void ipulog_perror(const char *s)
fputc('\n', stderr);
}
+int ipulog_get_fd(struct ipulog_handle *h)
+{
+ return h->fd;
+}
+