summaryrefslogtreecommitdiff
path: root/system.h
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2014-06-20 19:48:32 +0200
committerSteven Barth <steven@midlink.org>2014-06-20 19:48:32 +0200
commit07e9b542017c692ee2abe7a8689517b466150944 (patch)
tree5de40d767a9bdf30d0a2bf6ad2235f01dc37dbdb /system.h
parent65cab45660dd0b234b663a39a133c64271f667b7 (diff)
downloadnetifd-07e9b542017c692ee2abe7a8689517b466150944.tar.gz
system: fix treatment of RT_TABLE_MAIN
Do not treat RT_TABLE_MAIN as RT_TABLE_UNSPEC in system_resolve_rt_table() in order to allow ip rules with lookup main to work as expected. Provide a new function system_is_default_rt_table() to allow calling code to specifically test for RT_TABLE_MAIN, this is going to be needed for the backwards compatible handling of the table attribute in route objects. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'system.h')
-rw-r--r--system.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/system.h b/system.h
index 4c80eb0..0fde7f1 100644
--- a/system.h
+++ b/system.h
@@ -130,6 +130,7 @@ int system_flush_routes(void);
bool system_resolve_rt_type(const char *type, unsigned int *id);
bool system_resolve_rt_table(const char *name, unsigned int *id);
+bool system_is_default_rt_table(unsigned int id);
int system_del_ip_tunnel(const char *name);
int system_add_ip_tunnel(const char *name, struct blob_attr *attr);