From 445a1e92c92d052007ab66b0a79d2bfa5683d493 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:01 +0000 Subject: rename files correctly (Eric Leblond) --- include/libnetfilter_queue/libnetfilter_queue.h | 87 +++++++++++++++++++++++++ include/libnetfilter_queue/libnfnetlink_queue.h | 87 ------------------------- 2 files changed, 87 insertions(+), 87 deletions(-) create mode 100644 include/libnetfilter_queue/libnetfilter_queue.h delete mode 100644 include/libnetfilter_queue/libnfnetlink_queue.h (limited to 'include/libnetfilter_queue') diff --git a/include/libnetfilter_queue/libnetfilter_queue.h b/include/libnetfilter_queue/libnetfilter_queue.h new file mode 100644 index 0000000..9c2b40d --- /dev/null +++ b/include/libnetfilter_queue/libnetfilter_queue.h @@ -0,0 +1,87 @@ +/* libnfqnetlink.h: Header file for the Netfilter Queue library. + * + * (C) 2005 by Harald Welte + * + * + * Changelog : + * (2005/08/11) added parsing function (Eric Leblond ) + * + * This software may be used and distributed according to the terms + * of the GNU General Public License, incorporated herein by reference. + */ + +#ifndef __LIBCTNETLINK_H +#define __LIBCTNETLINK_H + +#include + +#include +#include + +struct nfqnl_handle; +struct nfqnl_q_handle; + +extern int nfqnl_errno; + +extern struct nfnl_handle *nfqnl_nfnlh(struct nfqnl_handle *h); +extern int nfqnl_fd(struct nfqnl_handle *h); + +typedef int nfqnl_callback(struct nfqnl_q_handle *gh, struct nfgenmsg *nfmsg, + struct nfattr *nfa[], void *data); + + +extern struct nfqnl_handle *nfqnl_open(void); +extern int nfqnl_close(struct nfqnl_handle *h); + +extern int nfqnl_bind_pf(struct nfqnl_handle *h, u_int16_t pf); +extern int nfqnl_unbind_pf(struct nfqnl_handle *h, u_int16_t pf); + +extern struct nfqnl_q_handle *nfqnl_create_queue(struct nfqnl_handle *h, + u_int16_t num, + nfqnl_callback *cb, + void *data); +extern int nfqnl_destroy_queue(struct nfqnl_q_handle *qh); + +extern int nfqnl_handle_packet(struct nfqnl_handle *h, char *buf, int len); + +extern int nfqnl_set_mode(struct nfqnl_q_handle *qh, + u_int8_t mode, unsigned int len); + +extern int nfqnl_set_verdict(struct nfqnl_q_handle *qh, + u_int32_t id, + u_int32_t verdict, + u_int32_t data_len, + unsigned char *buf); + +extern int nfqnl_set_verdict_mark(struct nfqnl_q_handle *qh, + u_int32_t id, + u_int32_t verdict, + u_int32_t mark, + u_int32_t datalen, + unsigned char *buf); + +/* message parsing function */ + +extern struct nfqnl_msg_packet_hdr * + nfqnl_get_msg_packet_hdr(struct nfattr *nfa[]); + +extern u_int32_t nfqnl_get_nfmark(struct nfattr *nfa[]); + +extern struct nfqnl_msg_packet_timestamp * + nfqnl_get_timestamp(struct nfattr *nfa[]); + +/* return 0 if not set */ +extern u_int32_t nfqnl_get_indev(struct nfattr *nfa[]); +extern u_int32_t nfqnl_get_physindev(struct nfattr *nfa[]); +extern u_int32_t nfqnl_get_outdev(struct nfattr *nfa[]); +extern u_int32_t nfqnl_get_physoutdev(struct nfattr *nfa[]); + +extern struct nfqnl_msg_packet_hw *nfqnl_get_packet_hw(struct nfattr *nfa[]); + +/* return 0 if problem */ +extern int nfqnl_get_payload(struct nfattr *nfa[], + char ** data, unsigned int* datalen); + + + +#endif /* __LIBNFQNETLINK_H */ diff --git a/include/libnetfilter_queue/libnfnetlink_queue.h b/include/libnetfilter_queue/libnfnetlink_queue.h deleted file mode 100644 index 9c2b40d..0000000 --- a/include/libnetfilter_queue/libnfnetlink_queue.h +++ /dev/null @@ -1,87 +0,0 @@ -/* libnfqnetlink.h: Header file for the Netfilter Queue library. - * - * (C) 2005 by Harald Welte - * - * - * Changelog : - * (2005/08/11) added parsing function (Eric Leblond ) - * - * This software may be used and distributed according to the terms - * of the GNU General Public License, incorporated herein by reference. - */ - -#ifndef __LIBCTNETLINK_H -#define __LIBCTNETLINK_H - -#include - -#include -#include - -struct nfqnl_handle; -struct nfqnl_q_handle; - -extern int nfqnl_errno; - -extern struct nfnl_handle *nfqnl_nfnlh(struct nfqnl_handle *h); -extern int nfqnl_fd(struct nfqnl_handle *h); - -typedef int nfqnl_callback(struct nfqnl_q_handle *gh, struct nfgenmsg *nfmsg, - struct nfattr *nfa[], void *data); - - -extern struct nfqnl_handle *nfqnl_open(void); -extern int nfqnl_close(struct nfqnl_handle *h); - -extern int nfqnl_bind_pf(struct nfqnl_handle *h, u_int16_t pf); -extern int nfqnl_unbind_pf(struct nfqnl_handle *h, u_int16_t pf); - -extern struct nfqnl_q_handle *nfqnl_create_queue(struct nfqnl_handle *h, - u_int16_t num, - nfqnl_callback *cb, - void *data); -extern int nfqnl_destroy_queue(struct nfqnl_q_handle *qh); - -extern int nfqnl_handle_packet(struct nfqnl_handle *h, char *buf, int len); - -extern int nfqnl_set_mode(struct nfqnl_q_handle *qh, - u_int8_t mode, unsigned int len); - -extern int nfqnl_set_verdict(struct nfqnl_q_handle *qh, - u_int32_t id, - u_int32_t verdict, - u_int32_t data_len, - unsigned char *buf); - -extern int nfqnl_set_verdict_mark(struct nfqnl_q_handle *qh, - u_int32_t id, - u_int32_t verdict, - u_int32_t mark, - u_int32_t datalen, - unsigned char *buf); - -/* message parsing function */ - -extern struct nfqnl_msg_packet_hdr * - nfqnl_get_msg_packet_hdr(struct nfattr *nfa[]); - -extern u_int32_t nfqnl_get_nfmark(struct nfattr *nfa[]); - -extern struct nfqnl_msg_packet_timestamp * - nfqnl_get_timestamp(struct nfattr *nfa[]); - -/* return 0 if not set */ -extern u_int32_t nfqnl_get_indev(struct nfattr *nfa[]); -extern u_int32_t nfqnl_get_physindev(struct nfattr *nfa[]); -extern u_int32_t nfqnl_get_outdev(struct nfattr *nfa[]); -extern u_int32_t nfqnl_get_physoutdev(struct nfattr *nfa[]); - -extern struct nfqnl_msg_packet_hw *nfqnl_get_packet_hw(struct nfattr *nfa[]); - -/* return 0 if problem */ -extern int nfqnl_get_payload(struct nfattr *nfa[], - char ** data, unsigned int* datalen); - - - -#endif /* __LIBNFQNETLINK_H */ -- cgit v1.2.3