mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-10 22:25:38 +00:00
Fix to remove rule with correct handle.
This commit is contained in:
parent
841b2fb1f3
commit
c6ebb70f35
@ -159,6 +159,7 @@ delete_redirect_and_filter_rules(unsigned short eport, int proto)
|
||||
r = rule_del_handle(p);
|
||||
/* Todo: send bulk request */
|
||||
nft_send_request(r, NFT_MSG_DELRULE);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1034,7 +1034,7 @@ rule_del_handle(rule_t *rule)
|
||||
nft_rule_attr_set(r, NFT_RULE_ATTR_TABLE, rule->table);
|
||||
nft_rule_attr_set(r, NFT_RULE_ATTR_CHAIN, rule->chain);
|
||||
nft_rule_attr_set_u32(r, NFT_RULE_ATTR_FAMILY, rule->family);
|
||||
nft_rule_attr_set_u64(r, NFT_RULE_ATTR_POSITION, rule->handle);
|
||||
nft_rule_attr_set_u64(r, NFT_RULE_ATTR_HANDLE, rule->handle);
|
||||
|
||||
return r;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user