diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-05-12 20:52:43 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-05-12 20:54:19 +0200 |
commit | 0f31d8258e7ead5bd3944080e6cec7d4074149e7 (patch) | |
tree | 57247981c948e9073a9df656afeaeb4ed92b0179 /src/evaluate.c | |
parent | 47ffae232aeaadca37293861d52a11f907d6b768 (diff) |
src: use definitions in include/linux/netfilter/nf_tables.h
Use NFT_LOGLEVEL_* definitions in UAPI.
Make an internal definition of NFT_OSF_F_VERSION, this was originally
defined in the UAPI header in the initial patch version, however, this
is not available anymore.
Add a bison rule to deal with the timeout case.
Otherwise, compilation breaks.
Fixes: d3869cae9d62 ("include: refresh nf_tables.h cached copy")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/evaluate.c')
-rw-r--r-- | src/evaluate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evaluate.c b/src/evaluate.c index 3593eb80..21d9e146 100644 --- a/src/evaluate.c +++ b/src/evaluate.c @@ -2812,7 +2812,7 @@ static int stmt_evaluate_log(struct eval_ctx *ctx, struct stmt *stmt) return stmt_error(ctx, stmt, "flags and group are mutually exclusive"); } - if (stmt->log.level == LOGLEVEL_AUDIT && + if (stmt->log.level == NFT_LOGLEVEL_AUDIT && (stmt->log.flags & ~STMT_LOG_LEVEL || stmt->log.logflags)) return stmt_error(ctx, stmt, "log level audit doesn't support any further options"); |