interface: don't store table id in route if the default table is used
authorSteven Barth <steven@midlink.org>
Fri, 20 Jun 2014 17:50:13 +0000 (19:50 +0200)
committerSteven Barth <steven@midlink.org>
Fri, 20 Jun 2014 17:50:13 +0000 (19:50 +0200)
commit4452867c4b34cb0d9dc7fe9dc42ecc86af887176
tree95c84a21e3a24332cef256f1fa3340c9e6b13124
parent07e9b542017c692ee2abe7a8689517b466150944
interface: don't store table id in route if the default table is used

Use system_is_default_rt_table() to test whether the resolved routing table
is the default one, in this case do not apply the table attribute to the
route object.

This is needed for backwards compatibility - only routes using a non-default
table shall report it in the ifstatus output.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
interface-ip.c