summaryrefslogtreecommitdiffstats
path: root/src/meta.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2014-01-08 13:02:15 +0000
committerPatrick McHardy <kaber@trash.net>2014-01-08 13:02:15 +0000
commitdccc746af16bdc3e85610e067eebc951b75b73f1 (patch)
tree2bfd3b0180667989d00c79955d1883889db8f27f /src/meta.c
parent77ef4d83c8d030b183ff763605b2c3026545fc9c (diff)
proto: add helper function to update protocol context
Add a helper function which is to be used to update the protocol update. Signed-off-by: Patrick McHardy <ksber@trash.net<
Diffstat (limited to 'src/meta.c')
-rw-r--r--src/meta.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/meta.c b/src/meta.c
index 9173c306..e0ae9502 100644
--- a/src/meta.c
+++ b/src/meta.c
@@ -367,8 +367,7 @@ static void meta_expr_pctx_update(struct proto_ctx *ctx,
if (desc == NULL)
desc = &proto_unknown;
- ctx->protocol[PROTO_BASE_LL_HDR].location = expr->location;
- ctx->protocol[PROTO_BASE_LL_HDR].desc = desc;
+ proto_ctx_update(ctx, PROTO_BASE_LL_HDR, &expr->location, desc);
}
static const struct expr_ops meta_expr_ops = {