summaryrefslogtreecommitdiffstats
path: root/src/expr/cmp.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2014-01-15 07:28:20 +0000
committerPatrick McHardy <kaber@trash.net>2014-01-15 07:28:20 +0000
commit3177a0d6f4be42775c128c02afe7de78dc3ea99d (patch)
tree9c1c1748f7e7a30be19f161f5efb80d7a27a48d0 /src/expr/cmp.c
parent4dc042dcb2c189aedd8e277fe15165d61d675a85 (diff)
expr/cmp: fix type size
Since nftables now uses nft_rule_expr_get_u32(), the internal size must also be a uint32_t. Fixes complete breakage of any cmp or meta expression. Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/expr/cmp.c')
-rw-r--r--src/expr/cmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr/cmp.c b/src/expr/cmp.c
index 246f22f..1c5787e 100644
--- a/src/expr/cmp.c
+++ b/src/expr/cmp.c
@@ -26,8 +26,8 @@
struct nft_expr_cmp {
union nft_data_reg data;
- uint8_t sreg; /* enum nft_registers */
- uint8_t op; /* enum nft_cmp_ops */
+ uint32_t sreg; /* enum nft_registers */
+ uint32_t op; /* enum nft_cmp_ops */
};
static int