X-Git-Url: https://git.archive.openwrt.org/?p=project%2Ffirewall3.git;a=blobdiff_plain;f=utils.h;fp=utils.h;h=60e87c28696a651e686b33c40d7dda76a196718b;hp=e0af88f85f04058f12458d2ffc08918861671a65;hb=a2a689ed85420a4acf47835c9d6438e06e75ec82;hpb=87c4f12e16ae726e20774ee58468fa751a79a2c1 diff --git a/utils.h b/utils.h index e0af88f..60e87c2 100644 --- a/utils.h +++ b/utils.h @@ -97,4 +97,15 @@ void fw3_set_running(void *object, struct list_head *dest); void fw3_free_object(void *obj, const void *opts); + +struct fw3_rule_spec { + int family; + int table; + int flag; + const char *format; +}; + +bool fw3_pr_rulespec(int table, int family, uint32_t *flags, uint32_t mask, + const struct fw3_rule_spec *r, const char *fmt, ...); + #endif