From f002a811e060ddb8c2d88f94c67c33cec7579028 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: Sat, 5 Nov 2005 13:05:54 +0000 Subject: implement accessor functions similar to libnetfilter_queue --- include/libnetfilter_log/libnetfilter_log.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/libnetfilter_log/libnetfilter_log.h b/include/libnetfilter_log/libnetfilter_log.h index 7866288..64904bb 100644 --- a/include/libnetfilter_log/libnetfilter_log.h +++ b/include/libnetfilter_log/libnetfilter_log.h @@ -14,6 +14,7 @@ struct nflog_handle; struct nflog_g_handle; +struct nflog_data; extern int nflog_errno; @@ -21,7 +22,7 @@ extern struct nfnl_handle *nflog_nfnlh(struct nflog_handle *h); extern int nflog_fd(struct nflog_handle *h); typedef int nflog_callback(struct nflog_g_handle *gh, struct nfgenmsg *nfmsg, - struct nfattr *nfa[], void *data); + struct nflog_data *nfd, void *data); extern struct nflog_handle *nflog_open(void); @@ -44,4 +45,17 @@ extern int nflog_callback_register(struct nflog_g_handle *gh, nflog_callback *cb, void *data); extern int nflog_handle_packet(struct nflog_handle *h, char *buf, int len); + +extern struct nfulnl_msg_packet_hdr *nflog_get_msg_packet_hdr(struct nflog_data *nfad); +extern u_int32_t nflog_get_nfmark(struct nflog_data *nfad); +extern struct nfulnl_msg_packet_timestamp *nflog_get_timestamp(struct nflog_data *nfad); +extern u_int32_t nflog_get_indev(struct nflog_data *nfad); +extern u_int32_t nflog_get_physindev(struct nflog_data *nfad); +extern u_int32_t nflog_get_outdev(struct nflog_data *nfad); +extern u_int32_t nflog_get_physoutdev(struct nflog_data *nfad); +extern struct nfulnl_msg_packet_hw *nflog_get_packet_hw(struct nflog_data *nfad); +extern int nflog_get_payload(struct nflog_data *nfad, char **data); +extern char *nflog_get_prefix(struct nflog_data *nfad); +extern int nflog_get_uid(struct nflog_data *nfad, u_int32_t *uid); + #endif /* __LIBNETFILTER_LOG_H */ -- cgit v1.2.3