From b023279fffcc848c1d2787a1bda33a3104808110 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Thu, 17 Jul 2008 11:10:41 +0200 Subject: Add parsing function for raw hardware header This patch adds support for the parsing of NFULA_HWTYPE, NFULA_HWHEADER, and NFULA_HWLEN part of the NFLOG message. This permits to have a ULOG like behaviour but thanks to NFULA_HWTYPE we will be able to parse the message cleanly in userspace. Signed-off-by: Eric Leblond Signed-off-by: Patrick McHardy --- include/libnetfilter_log/libnetfilter_log.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/libnetfilter_log/libnetfilter_log.h') diff --git a/include/libnetfilter_log/libnetfilter_log.h b/include/libnetfilter_log/libnetfilter_log.h index 4e5d763..aa0da72 100644 --- a/include/libnetfilter_log/libnetfilter_log.h +++ b/include/libnetfilter_log/libnetfilter_log.h @@ -48,6 +48,11 @@ 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_int16_t nflog_get_hwtype(struct nflog_data *nfad); +extern u_int16_t nflog_get_msg_packet_hwhdrlen(struct nflog_data *nfad); +extern char *nflog_get_msg_packet_hwhdr(struct nflog_data *nfad); + extern u_int32_t nflog_get_nfmark(struct nflog_data *nfad); extern int nflog_get_timestamp(struct nflog_data *nfad, struct timeval *tv); extern u_int32_t nflog_get_indev(struct nflog_data *nfad); -- cgit v1.2.3