diff options
author | Phil Sutter <phil@nwl.cc> | 2018-07-19 18:31:56 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-07-19 22:18:06 +0200 |
commit | 05894576bf78e8f3ec4e816ffc908a2dbced0350 (patch) | |
tree | 7a9156c86431a3cf94230f6046171fe066ca350c /iptables/nft-arp.c | |
parent | d9c6a5d0977a6d8bbe772dbc31a2c4f58eec1708 (diff) |
xtables: simplify struct nft_xt_ctx
Replace union 'state' by its sole member.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft-arp.c')
-rw-r--r-- | iptables/nft-arp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables/nft-arp.c b/iptables/nft-arp.c index 7b70ef22..06d86647 100644 --- a/iptables/nft-arp.c +++ b/iptables/nft-arp.c @@ -372,7 +372,7 @@ void nft_rule_to_arptables_command_state(const struct nftnl_rule *r, struct nftnl_expr *expr; int family = nftnl_rule_get_u32(r, NFTNL_RULE_FAMILY); struct nft_xt_ctx ctx = { - .state.cs = cs, + .cs = cs, .family = family, }; @@ -387,7 +387,7 @@ void nft_rule_to_arptables_command_state(const struct nftnl_rule *r, nftnl_expr_get_str(expr, NFTNL_EXPR_NAME); if (strcmp(name, "counter") == 0) - nft_parse_counter(expr, &ctx.state.cs->arp.counters); + nft_parse_counter(expr, &ctx.cs->arp.counters); else if (strcmp(name, "payload") == 0) nft_parse_payload(&ctx, expr); else if (strcmp(name, "meta") == 0) |