X-Git-Url: https://git.archive.openwrt.org/?p=project%2Ffirewall3.git;a=blobdiff_plain;f=iptables.c;fp=iptables.c;h=a48a8b6ec1c465e57d92931f2aa39aa378373834;hp=d8482399dbaa85f611f6720aaae1d29727b0bf17;hb=f50a524847a0ac74ef8cc74011d3cc46e9269c6b;hpb=503db4a2e50519802ca6380495d4ecf32894f905 diff --git a/iptables.c b/iptables.c index d848239..a48a8b6 100644 --- a/iptables.c +++ b/iptables.c @@ -1026,6 +1026,16 @@ fw3_ipt_rule_ipset(struct fw3_ipt_rule *r, struct fw3_setmatch *match) } void +fw3_ipt_rule_helper(struct fw3_ipt_rule *r, struct fw3_cthelpermatch *match) +{ + if (!match || !match->set || !match->ptr) + return; + + fw3_ipt_rule_addarg(r, false, "-m", "helper"); + fw3_ipt_rule_addarg(r, match->invert, "--helper", match->ptr->name); +} + +void fw3_ipt_rule_time(struct fw3_ipt_rule *r, struct fw3_time *time) { int i;