[PATCH nft 2/5] payload: don't resolve expressions using the inet pseudoheader

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Else, '@ll,0,8' will be mapped to 'inet nfproto', but thats
not correct (inet is a pseudo header).

Signed-off-by: Florian Westphal <fw@xxxxxxxxx>
---
 src/payload.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/payload.c b/src/payload.c
index a1e7e77ed5c5..ef437b440b28 100644
--- a/src/payload.c
+++ b/src/payload.c
@@ -535,7 +535,7 @@ void payload_expr_complete(struct expr *expr, const struct proto_ctx *ctx)
 	assert(expr->ops->type == EXPR_PAYLOAD);
 
 	desc = ctx->protocol[expr->payload.base].desc;
-	if (desc == NULL)
+	if (desc == NULL || desc == &proto_inet)
 		return;
 	assert(desc->base == expr->payload.base);
 
-- 
2.16.1

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux