/*
* firewall3 - 3rd OpenWrt UCI firewall implementation
*
- * Copyright (C) 2013 Jo-Philipp Wich <jow@openwrt.org>
+ * Copyright (C) 2013 Jo-Philipp Wich <jo@mein.io>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/file.h>
+#include <sys/types.h>
+#include <ifaddrs.h>
#include <libubox/list.h>
#include <uci.h>
void fw3_free_object(void *obj, const void *opts);
+void fw3_free_list(struct list_head *head);
-struct fw3_rule_spec {
- int family;
- int table;
- int flag;
- const char *format;
-};
+bool fw3_hotplug(bool add, void *zone, void *device);
-bool fw3_pr_rulespec(int table, int family, uint32_t *flags, uint32_t mask,
- const struct fw3_rule_spec *r, const char *fmt, ...);
+int fw3_netmask2bitlen(int family, void *mask);
-bool fw3_hotplug(bool add, void *zone, void *device);
+bool fw3_bitlen2netmask(int family, int bits, void *mask);
+
+void fw3_flush_conntrack(void *zone);
#endif