summaryrefslogtreecommitdiffstats
path: root/ipset.h
diff options
context:
space:
mode:
Diffstat (limited to 'ipset.h')
-rw-r--r--ipset.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ipset.h b/ipset.h
index ad43f65..3e181c4 100644
--- a/ipset.h
+++ b/ipset.h
@@ -21,8 +21,6 @@
*/
#include <getopt.h>
-#include <sys/types.h>
-#include <netdb.h>
#include <linux/netfilter_ipv4/ip_set.h>
@@ -184,6 +182,9 @@ extern void *ipset_malloc(size_t size);
extern char *ipset_strdup(const char *);
extern void ipset_free(void **data);
+extern struct set *set_find_byname(const char *name);
+extern struct set *set_find_byid(ip_set_id_t id);
+
#define BITSPERBYTE (8*sizeof(char))
#define ID2BYTE(id) ((id)/BITSPERBYTE)
#define ID2MASK(id) (1 << ((id)%BITSPERBYTE))