X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffirewall3.git;a=blobdiff_plain;f=iptables.h;h=473110403c813b40b9d4b306c5752d0a6e478caa;hp=31d32682badd762a89b89e09ee1a5dd3d8bec932;hb=294f209f64dca84d1c4dd801a1f7e615e39f0726;hpb=6b27a6665c288937eb5028063064e3350dcab545 diff --git a/iptables.h b/iptables.h index 31d3268..4731104 100644 --- a/iptables.h +++ b/iptables.h @@ -75,21 +75,7 @@ void fw3_ipt_set_policy(struct fw3_ipt_handle *h, const char *chain, void fw3_ipt_delete_chain(struct fw3_ipt_handle *h, const char *chain); void fw3_ipt_delete_rules(struct fw3_ipt_handle *h, const char *target); -static inline void -fw3_ipt_create_chain(struct fw3_ipt_handle *h, const char *fmt, ...) -{ - char buf[32]; - va_list ap; - - va_start(ap, fmt); - vsnprintf(buf, sizeof(buf) - 1, fmt, ap); - va_end(ap); - - if (fw3_pr_debug) - printf("-N %s\n", buf); - - iptc_create_chain(buf, h->handle); -} +void fw3_ipt_create_chain(struct fw3_ipt_handle *h, const char *fmt, ...); void fw3_ipt_flush(struct fw3_ipt_handle *h);