X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=utils.h;h=d2e1aa68e8eacc9b8d196b83d89a55a102e6c9bd;hb=91953d6a6e90df988f442f53097bd208784a295d;hp=42dac7333541c31a3acb002fe087eed8e92c3630;hpb=29f2457a3d054893c8718fd511bb11ab1d8f5652;p=project%2Ffirewall3.git diff --git a/utils.h b/utils.h index 42dac73..d2e1aa6 100644 --- a/utils.h +++ b/utils.h @@ -91,14 +91,12 @@ void fw3_write_statefile(void *state); void fw3_free_object(void *obj, const void *opts); - -struct fw3_rule_spec { - int family; - int table; - int flag; - const char *format; -}; +void fw3_free_list(struct list_head *head); bool fw3_hotplug(bool add, void *zone, void *device); +int fw3_netmask2bitlen(int family, void *mask); + +bool fw3_bitlen2netmask(int family, int bits, void *mask); + #endif