![Eric Leblond](/assets/img/avatar_default.png)
In NFLOG the per-rule qthreshold should overrides per-instance only it is set. With current code, the per-rule qthreshold is 1 if not set and it overrides the per-instance qthreshold. This patch modifies the default xt_NFLOG threshold from 1 to 0. Thus a value of 0 means there is no per-rule setting and the instance parameter has to apply. Signed-off-by: Eric Leblond <eric@inl.fr> 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 0
|
|
|
|
#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 */
|