In case of remove filter, just remove one rule.
This commit is contained in:
parent
939b3262c3
commit
d2bc556733
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue