diff options
Diffstat (limited to 'include/libnetfilter_log/libnetfilter_log.h')
-rw-r--r-- | include/libnetfilter_log/libnetfilter_log.h | 16 |
1 files changed, 15 insertions, 1 deletions
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 */ |