diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-09-19 20:46:42 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-12-30 23:50:48 +0100 |
commit | 7c7dcb2f2b86f71578c4cfc810042c98a43ea70a (patch) | |
tree | ae09e064918f5648bcf8197d625b90c8fdca845d /iptables | |
parent | b8635aea998c4d52e38f7b20cbd4afa898ef2cc7 (diff) |
nft: adapt nft_rule_expr_get to use uint32_t instead of size_t
According to libnftables change 437d610, now the length obtained
via getter function is uint32_t, not size_t anymore.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables')
-rw-r--r-- | iptables/nft-shared.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/iptables/nft-shared.c b/iptables/nft-shared.c index acf352d6..5c09fe1d 100644 --- a/iptables/nft-shared.c +++ b/iptables/nft-shared.c @@ -223,7 +223,7 @@ void parse_meta(struct nft_rule_expr *e, uint8_t key, char *iniface, { uint32_t value; const void *ifname; - size_t len; + uint32_t len; switch(key) { case NFT_META_IIF: @@ -285,7 +285,7 @@ void parse_meta(struct nft_rule_expr *e, uint8_t key, char *iniface, void nft_parse_target(struct nft_rule_expr *e, struct nft_rule_expr_iter *iter, int family, void *data) { - size_t tg_len; + uint32_t tg_len; const char *targname = nft_rule_expr_get_str(e, NFT_EXPR_TG_NAME); const void *targinfo = nft_rule_expr_get(e, NFT_EXPR_TG_INFO, &tg_len); struct xtables_target *target; @@ -316,7 +316,7 @@ static void nft_parse_match(struct nft_rule_expr *e, struct nft_rule_expr_iter *iter, struct iptables_command_state *cs) { - size_t mt_len; + uint32_t mt_len; const char *mt_name = nft_rule_expr_get_str(e, NFT_EXPR_MT_NAME); const void *mt_info = nft_rule_expr_get(e, NFT_EXPR_MT_INFO, &mt_len); struct xtables_match *match; @@ -360,7 +360,7 @@ void get_cmp_data(struct nft_rule_expr_iter *iter, { struct nft_rule_expr *e; const char *name; - size_t len; + uint32_t len; uint8_t op; e = nft_rule_expr_iter_next(iter); |