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
0d1b9d8
..
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,6
+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);
+
bool fw3_hotplug(bool add, void *zone, void *device);
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);
+
+void fw3_flush_conntrack(void *zone);
+
#endif
#endif