diff options
author | laforge <laforge> | 2000-07-31 09:08:10 +0000 |
---|---|---|
committer | laforge <laforge> | 2000-07-31 09:08:10 +0000 |
commit | 99987584cdfd3c4d52432346b407818547e9e157 (patch) | |
tree | c605dcd128de825bc0a2695b02b765029eb774b8 /kernel/ipt_ULOG.h | |
parent | 5c6ad9785fa043bd5337dd8088f795f89fbcd931 (diff) |
Initial revision
Diffstat (limited to 'kernel/ipt_ULOG.h')
-rw-r--r-- | kernel/ipt_ULOG.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/kernel/ipt_ULOG.h b/kernel/ipt_ULOG.h new file mode 100644 index 0000000..78ff0df --- /dev/null +++ b/kernel/ipt_ULOG.h @@ -0,0 +1,36 @@ +#ifndef _IPT_ULOG_H +#define _IPT_ULOG_H + +#ifdef __KERNEL__ +#include <linux/netdevice.h> +#endif + +#define ULOG_MAC_LEN 80 + + +/* just until this is in netfilter.h */ +#ifndef NETLINK_NFLOG +#define NETLINK_NFLOG 25 +#endif + +struct ipt_ulog_info { + unsigned char logflags; + unsigned int nl_group; + char prefix[30]; +}; + +typedef struct ulog_packet_msg { + unsigned long mark; + long timestamp_sec; + long timestamp_usec; + unsigned int hook; + char indev_name[IFNAMSIZ]; + char outdev_name[IFNAMSIZ]; + size_t data_len; + char prefix[30]; + unsigned char mac_len; + unsigned char mac[ULOG_MAC_LEN]; + unsigned char payload[0]; +} ulog_packet_msg_t; + +#endif /*_IPT_ULOG_H*/ |