projects
/
project
/
firewall3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
firewall3: fix left shift on 64 bit systems in fw3_bitlen2netmask
[project/firewall3.git]
/
utils.h
diff --git
a/utils.h
b/utils.h
index
ea6a105
..
834d979
100644
(file)
--- a/
utils.h
+++ b/
utils.h
@@
-28,6
+28,8
@@
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/file.h>
#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>
#include <libubox/list.h>
#include <uci.h>
@@
-91,17
+93,14
@@
void fw3_write_statefile(void *state);
void fw3_free_object(void *obj, const void *opts);
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
#endif