X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffirewall3.git;a=blobdiff_plain;f=ipsets.h;h=9704177725b57cf571da6e82970a02a51fb2fe13;hp=debe0e88962f6748ffc617b96808f1646d61b709;hb=ad958ff26d73f61b6619112564ea5695e024024a;hpb=5df8137ebc5db2bc9c6e71b2d154a5f77679d9d8 diff --git a/ipsets.h b/ipsets.h index debe0e8..9704177 100644 --- a/ipsets.h +++ b/ipsets.h @@ -19,9 +19,12 @@ #ifndef __FW3_IPSETS_H #define __FW3_IPSETS_H +#include + #include "options.h" #include "utils.h" + extern const struct fw3_option fw3_ipset_opts[]; struct fw3_ipset * fw3_alloc_ipset(void); @@ -29,8 +32,9 @@ void fw3_load_ipsets(struct fw3_state *state, struct uci_package *p); void fw3_create_ipsets(struct fw3_state *state); void fw3_destroy_ipsets(struct fw3_state *state); -struct fw3_ipset * fw3_lookup_ipset(struct fw3_state *state, const char *name, - bool running); +struct fw3_ipset * fw3_lookup_ipset(struct fw3_state *state, const char *name); + +bool fw3_check_ipset(struct fw3_ipset *set); #define fw3_free_ipset(ipset) \ fw3_free_object(ipset, fw3_ipset_opts)