X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=interface-ip.c;h=587826a996cd708d094b00fc658fcaf3a4919dbc;hb=75e73ab3714e324bf98140dbbf740d3e4c40f044;hp=715e49837266b7f68b247e10e46d5fc43f9c0f5d;hpb=cd23fd6bf7983741b9a72bea78749278716248ec;p=project%2Fnetifd.git diff --git a/interface-ip.c b/interface-ip.c index 715e498..587826a 100644 --- a/interface-ip.c +++ b/interface-ip.c @@ -365,6 +365,10 @@ interface_ip_add_route(struct interface *iface, struct blob_attr *attr, bool v6) goto error; } + /* only set the table flag if not using the main (default) table */ + if (system_is_default_rt_table(route->table)) + route->table = 0; + if (route->table) route->flags |= DEVROUTE_TABLE; }