summaryrefslogtreecommitdiffhomepage
path: root/system.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-04-04 14:41:39 +0200
committerJo-Philipp Wich <jow@openwrt.org>2013-04-04 15:06:02 +0200
commita47c3353cdf46b730f43198052c8f807e2bd313f (patch)
treed823e8d658d662e90e02531aeab997629e02e7d1 /system.h
parent09ae3bfa2ad7a3a9630fdf290b872a2d7673843f (diff)
Add support for ip rules
Diffstat (limited to 'system.h')
-rw-r--r--system.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/system.h b/system.h
index b093371..9b555e8 100644
--- a/system.h
+++ b/system.h
@@ -19,6 +19,7 @@
#include <arpa/inet.h>
#include "device.h"
#include "interface-ip.h"
+#include "iprule.h"
enum tunnel_param {
TUNNEL_ATTR_TYPE,
@@ -99,6 +100,12 @@ bool system_resolve_rt_table(const char *name, unsigned int *id);
int system_del_ip_tunnel(const char *name);
int system_add_ip_tunnel(const char *name, struct blob_attr *attr);
+int system_add_iprule(struct iprule *rule);
+int system_del_iprule(struct iprule *rule);
+int system_flush_iprules(void);
+
+bool system_resolve_iprule_action(const char *action, unsigned int *id);
+
time_t system_get_rtime(void);
void system_fd_set_cloexec(int fd);