diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/expression.h | 2 | ||||
-rw-r--r-- | include/linux/netfilter/nf_log.h | 3 | ||||
-rw-r--r-- | include/statement.h | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/include/expression.h b/include/expression.h index 8135a516..87937a50 100644 --- a/include/expression.h +++ b/include/expression.h @@ -381,6 +381,8 @@ extern const struct datatype *expr_basetype(const struct expr *expr); extern void expr_set_type(struct expr *expr, const struct datatype *dtype, enum byteorder byteorder); +void expr_to_string(const struct expr *expr, char *string); + struct eval_ctx; extern int expr_binary_error(struct list_head *msgs, const struct expr *e1, const struct expr *e2, diff --git a/include/linux/netfilter/nf_log.h b/include/linux/netfilter/nf_log.h index 8be21e02..2ae00932 100644 --- a/include/linux/netfilter/nf_log.h +++ b/include/linux/netfilter/nf_log.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _NETFILTER_NF_LOG_H #define _NETFILTER_NF_LOG_H @@ -9,4 +10,6 @@ #define NF_LOG_MACDECODE 0x20 /* Decode MAC header */ #define NF_LOG_MASK 0x2f +#define NF_LOG_PREFIXLEN 128 + #endif /* _NETFILTER_NF_LOG_H */ diff --git a/include/statement.h b/include/statement.h index 7d96b394..061bc619 100644 --- a/include/statement.h +++ b/include/statement.h @@ -75,7 +75,7 @@ enum { }; struct log_stmt { - const char *prefix; + struct expr *prefix; unsigned int snaplen; uint16_t group; uint16_t qthreshold; |