diff options
author | Patrick McHardy <kaber@trash.net> | 2014-01-08 13:02:15 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2014-01-08 13:02:15 +0000 |
commit | 8f86606efe82489945db1706bd1d1a4d524afcad (patch) | |
tree | 5a7b5febee4c8190a067b3d1af38fcd5f9172c74 /include/meta.h | |
parent | bc3656ad1e5b5812f916e9c9356785c06ce90936 (diff) |
nftables: generic procotol contexts
Currently the context of higher layer protocols is specific to payload
expressions with some special cases for meta IIFTYPE expressions. This
approach has a few shortcomings, concretely there are more expression
types which define upper layer protocols like the ct expression and two
upcoming new types for the meta expression.
Replace the payload context by a generic protocol context to deal with
this. This patch just splits off the requires parts from the payload
expression without any functional changes, the following patches will
add further functionality for other expressions.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/meta.h')
-rw-r--r-- | include/meta.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/meta.h b/include/meta.h index 459221fb..23f78cf1 100644 --- a/include/meta.h +++ b/include/meta.h @@ -25,5 +25,7 @@ struct meta_template { extern struct expr *meta_expr_alloc(const struct location *loc, enum nft_meta_keys key); +extern void meta_expr_pctx_update(struct proto_ctx *ctx, + const struct expr *expr); #endif /* NFTABLES_META_H */ |