From 98f34e90eee34c55062eb2aa3c426d999686236f Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org" Date: Wed, 26 Oct 2005 11:39:58 +0000 Subject: rename files to consistently use libnetfilter_log --- configure.in | 4 +-- include/libnetfilter_log/libnetfilter_log.h | 47 +++++++++++++++++++++++++++++ include/libnetfilter_log/libnfnetlink_log.h | 47 ----------------------------- 3 files changed, 49 insertions(+), 49 deletions(-) create mode 100644 include/libnetfilter_log/libnetfilter_log.h delete mode 100644 include/libnetfilter_log/libnfnetlink_log.h diff --git a/configure.in b/configure.in index 40e9189..1f36f0d 100644 --- a/configure.in +++ b/configure.in @@ -4,7 +4,7 @@ AC_INIT AC_CANONICAL_SYSTEM -AM_INIT_AUTOMAKE(libnfnetlink_log, 0.0.10) +AM_INIT_AUTOMAKE(libnetfilter_log, 0.0.10) AC_PROG_CC AM_PROG_LIBTOOL @@ -63,5 +63,5 @@ dnl-------------------------------- dnl Output the makefile -AC_OUTPUT(Makefile src/Makefile include/Makefile include/libnfnetlink_log/Makefile utils/Makefile) +AC_OUTPUT(Makefile src/Makefile include/Makefile include/libnetfilter_log/Makefile utils/Makefile) diff --git a/include/libnetfilter_log/libnetfilter_log.h b/include/libnetfilter_log/libnetfilter_log.h new file mode 100644 index 0000000..ff546d1 --- /dev/null +++ b/include/libnetfilter_log/libnetfilter_log.h @@ -0,0 +1,47 @@ +/* libnetfilter_log.h: Header file for the Netfilter Userspace Log library. + * + * (C) 2005 by Harald Welte + * + * This software may be used and distributed according to the terms + * of the GNU General Public License, incorporated herein by reference. + */ + +#ifndef __LIBNETFILTER_LOG_H +#define __LIBNETFILTER_LOG_H + +#include +#include + +struct nfulnl_handle; +struct nfulnl_g_handle; + +extern int nfulnl_errno; + +extern struct nfnl_handle *nfulnl_nfnlh(struct nfulnl_handle *h); +extern int nfulnl_fd(struct nfulnl_handle *h); + +typedef int nfulnl_callback(struct nfulnl_g_handle *gh, struct nfgenmsg *nfmsg, + struct nfattr *nfa[], void *data); + + +extern struct nfulnl_handle *nfulnl_open(void); +extern int nfulnl_close(struct nfulnl_handle *h); + +extern int nfulnl_bind_pf(struct nfulnl_handle *h, u_int16_t pf); +extern int nfulnl_unbind_pf(struct nfulnl_handle *h, u_int16_t pf); + +extern struct nfulnl_g_handle *nfulnl_bind_group(struct nfulnl_handle *h, + u_int16_t num); +extern int nfulnl_unbind_group(struct nfulnl_g_handle *gh); + +extern int nfulnl_set_mode(struct nfulnl_g_handle *gh, + u_int8_t mode, unsigned int len); +extern int nfulnl_set_timeout(struct nfulnl_g_handle *gh, u_int32_t timeout); +extern int nfulnl_set_qthresh(struct nfulnl_g_handle *gh, u_int32_t qthresh); +extern int nfulnl_set_nlbufsiz(struct nfulnl_g_handle *gh, u_int32_t nlbufsiz); + +extern int nfulnl_callback_register(struct nfulnl_g_handle *gh, + nfulnl_callback *cb, void *data); +extern int nfulnl_handle_packet(struct nfulnl_handle *h, char *buf, int len); + +#endif /* __LIBNETFILTER_LOG_H */ diff --git a/include/libnetfilter_log/libnfnetlink_log.h b/include/libnetfilter_log/libnfnetlink_log.h deleted file mode 100644 index ff546d1..0000000 --- a/include/libnetfilter_log/libnfnetlink_log.h +++ /dev/null @@ -1,47 +0,0 @@ -/* libnetfilter_log.h: Header file for the Netfilter Userspace Log library. - * - * (C) 2005 by Harald Welte - * - * This software may be used and distributed according to the terms - * of the GNU General Public License, incorporated herein by reference. - */ - -#ifndef __LIBNETFILTER_LOG_H -#define __LIBNETFILTER_LOG_H - -#include -#include - -struct nfulnl_handle; -struct nfulnl_g_handle; - -extern int nfulnl_errno; - -extern struct nfnl_handle *nfulnl_nfnlh(struct nfulnl_handle *h); -extern int nfulnl_fd(struct nfulnl_handle *h); - -typedef int nfulnl_callback(struct nfulnl_g_handle *gh, struct nfgenmsg *nfmsg, - struct nfattr *nfa[], void *data); - - -extern struct nfulnl_handle *nfulnl_open(void); -extern int nfulnl_close(struct nfulnl_handle *h); - -extern int nfulnl_bind_pf(struct nfulnl_handle *h, u_int16_t pf); -extern int nfulnl_unbind_pf(struct nfulnl_handle *h, u_int16_t pf); - -extern struct nfulnl_g_handle *nfulnl_bind_group(struct nfulnl_handle *h, - u_int16_t num); -extern int nfulnl_unbind_group(struct nfulnl_g_handle *gh); - -extern int nfulnl_set_mode(struct nfulnl_g_handle *gh, - u_int8_t mode, unsigned int len); -extern int nfulnl_set_timeout(struct nfulnl_g_handle *gh, u_int32_t timeout); -extern int nfulnl_set_qthresh(struct nfulnl_g_handle *gh, u_int32_t qthresh); -extern int nfulnl_set_nlbufsiz(struct nfulnl_g_handle *gh, u_int32_t nlbufsiz); - -extern int nfulnl_callback_register(struct nfulnl_g_handle *gh, - nfulnl_callback *cb, void *data); -extern int nfulnl_handle_packet(struct nfulnl_handle *h, char *buf, int len); - -#endif /* __LIBNETFILTER_LOG_H */ -- cgit v1.2.3