summaryrefslogtreecommitdiffhomepage
path: root/system-dummy.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2014-06-18 05:55:48 +0000
committerSteven Barth <steven@midlink.org>2014-06-18 13:02:19 +0200
commitcd23fd6bf7983741b9a72bea78749278716248ec (patch)
treeae4244fb6cff9fb2e51b0091d6119206b1876c34 /system-dummy.c
parent5d655d1d3f6880b53ea5bafda159c02da038548f (diff)
netifd: Route type support
Patch adds route type support in netifd by means of the route parameter type. By default the route type was unicast; the parameter adss support for local/broadcast/multicast/unicast routes which will be put into the appropriate routing table. If route type parameter is unset the route type will be unicast as before. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'system-dummy.c')
-rw-r--r--system-dummy.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/system-dummy.c b/system-dummy.c
index bb94781..f2988f2 100644
--- a/system-dummy.c
+++ b/system-dummy.c
@@ -193,6 +193,12 @@ int system_flush_routes(void)
return 0;
}
+bool system_resolve_rt_type(const char *type, unsigned int *id)
+{
+ *id = 0;
+ return true;
+}
+
bool system_resolve_rt_table(const char *name, unsigned int *id)
{
*id = 0;