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 939b3262c3
commit d2bc556733
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)) { (p->type == RULE_NAT || p->type == RULE_SNAT)) {
iaddr = p->iaddr; iaddr = p->iaddr;
iport = p->iport; iport = p->iport;
r = rule_del_handle(p); r = rule_del_handle(p);
/* Todo: send bulk request */ /* Todo: send bulk request */
nft_send_request(r, NFT_MSG_DELRULE); 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); r = rule_del_handle(p);
/* Todo: send bulk request */ /* Todo: send bulk request */
nft_send_request(r, NFT_MSG_DELRULE); nft_send_request(r, NFT_MSG_DELRULE);
break;
} }
} }