}
}
-void nft_rule_to_arptables_command_state(const struct nftnl_rule *r,
- struct iptables_command_state *cs)
+static void nft_arp_rule_to_cs(const struct nftnl_rule *r,
+ struct iptables_command_state *cs)
{
struct nftnl_expr_iter *iter;
struct nftnl_expr *expr;
{
struct iptables_command_state cs = {};
- nft_rule_to_arptables_command_state(r, &cs);
+ nft_arp_rule_to_cs(r, &cs);
if (format & FMT_LINENUMBERS)
printf("%u ", num);
struct iptables_command_state this = {};
/* Delete by matching rule case */
- nft_rule_to_arptables_command_state(r, &this);
+ nft_arp_rule_to_cs(r, &this);
if (!nft_arp_is_same(&cs->arp, &this.arp))
return false;
.save_firewall = NULL,
.save_counters = NULL,
.post_parse = NULL,
- .rule_to_cs = nft_rule_to_arptables_command_state,
+ .rule_to_cs = nft_arp_rule_to_cs,
.clear_cs = NULL,
.rule_find = nft_arp_rule_find,
.parse_target = nft_arp_parse_target,