summaryrefslogtreecommitdiff
path: root/system-dummy.c
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-dummy.c
parent09ae3bfa2ad7a3a9630fdf290b872a2d7673843f (diff)
downloadnetifd-a47c3353cdf46b730f43198052c8f807e2bd313f.tar.gz
Add support for ip rules
Diffstat (limited to 'system-dummy.c')
-rw-r--r--system-dummy.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/system-dummy.c b/system-dummy.c
index 2c15e2c..d692b79 100644
--- a/system-dummy.c
+++ b/system-dummy.c
@@ -196,6 +196,27 @@ int system_resolve_rt_table(const char *name, struct device_route *route)
return 0;
}
+int system_add_iprule(struct iprule *rule)
+{
+ return 0;
+}
+
+int system_del_iprule(struct iprule *rule)
+{
+ return 0;
+}
+
+int system_flush_iprules(void)
+{
+ return 0;
+}
+
+bool system_resolve_iprule_action(const char *action, unsigned int *id)
+{
+ *id = 0;
+ return true;
+}
+
time_t system_get_rtime(void)
{
struct timeval tv;