[PATCH nft 1/5] payload: use integer_type when initializing a raw expression

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

 



The invalid type prints prominent "[invalid]", so prefer integer type
in raw expressions.

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

diff --git a/src/payload.c b/src/payload.c
index 7ca170edbb6d..a1e7e77ed5c5 100644
--- a/src/payload.c
+++ b/src/payload.c
@@ -172,6 +172,7 @@ void payload_init_raw(struct expr *expr, enum proto_bases base,
 	expr->payload.base	= base;
 	expr->payload.offset	= offset;
 	expr->len		= len;
+	expr->dtype		= &integer_type;
 }
 
 unsigned int payload_hdr_field(const struct expr *expr)
-- 
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