From 29b6d125769417262b4841fe78e46813127a5d71 Mon Sep 17 00:00:00 2001 From: laforge Date: Sun, 17 Apr 2005 15:16:18 +0000 Subject: current working state (doesn't compile yet) --- libipulog/include/libipulog/libipulog.h | 4 +++- libipulog/libipulog.c | 9 +++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'libipulog') 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 #include @@ -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 @@ -253,3 +253,8 @@ void ipulog_perror(const char *s) fputc('\n', stderr); } +int ipulog_get_fd(struct ipulog_handle *h) +{ + return h->fd; +} + -- cgit v1.2.3