In case of remove filter, just remove one rule.

This commit is contained in:
Tomofumi Hayashi 2015-03-16 19:35:23 +09:00
parent c2af2650d9
commit 26a5c9a3aa
1 changed files with 2 additions and 0 deletions

View File

@ -155,6 +155,7 @@ delete_redirect_and_filter_rules(unsigned short eport, int proto)
(p->type == RULE_NAT || p->type == RULE_SNAT)) {
iaddr = p->iaddr;
iport = p->iport;
r = rule_del_handle(p);
/* Todo: send bulk request */
nft_send_request(r, NFT_MSG_DELRULE);
@ -171,6 +172,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;
}
}