baf7b1e112
Add new NFLOG target to allow use of nfnetlink_log for both IPv4 and IPv6. Currently we have two (unsupported by userspace) hacks in the LOG and ULOG targets to optionally call to the nflog API. They lack a few features, namely the IPv4 and IPv6 LOG targets can not specify a number of arguments related to nfnetlink_log, while the ULOG target is only available for IPv4. Remove those hacks and add a clean way to use nfnetlink_log. Signed-off-by: Patrick McHardy <kaber@trash.net>
19 lines
320 B
C
19 lines
320 B
C
#ifndef _XT_NFLOG_TARGET
|
|
#define _XT_NFLOG_TARGET
|
|
|
|
#define XT_NFLOG_DEFAULT_GROUP 0x1
|
|
#define XT_NFLOG_DEFAULT_THRESHOLD 1
|
|
|
|
#define XT_NFLOG_MASK 0x0
|
|
|
|
struct xt_nflog_info {
|
|
u_int32_t len;
|
|
u_int16_t group;
|
|
u_int16_t threshold;
|
|
u_int16_t flags;
|
|
u_int16_t pad;
|
|
char prefix[64];
|
|
};
|
|
|
|
#endif /* _XT_NFLOG_TARGET */
|