diff options
author | Steven Barth <steven@midlink.org> | 2013-05-11 12:56:02 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2013-05-11 12:56:02 +0200 |
commit | 587655b45085fcfc9c575792640c21c6ffb24f42 (patch) | |
tree | 00b5e2e5817ca0d248a177ff5480f3ed75465784 /system-linux.c | |
parent | 19e05a68ba2c5d11480ddd23d9b0d5756cbc8183 (diff) |
IPv6: Use source-routing to allow multi-wan
Diffstat (limited to 'system-linux.c')
-rw-r--r-- | system-linux.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system-linux.c b/system-linux.c index 9d2e92f..4401f78 100644 --- a/system-linux.c +++ b/system-linux.c @@ -965,7 +965,8 @@ static int system_rt(struct device *dev, struct device_route *route, int cmd) unsigned char scope = (cmd == RTM_DELROUTE) ? RT_SCOPE_NOWHERE : (have_gw) ? RT_SCOPE_UNIVERSE : RT_SCOPE_LINK; - unsigned int table = (route->flags & DEVROUTE_TABLE) ? route->table : RT_TABLE_MAIN; + unsigned int table = (route->flags & (DEVROUTE_TABLE | DEVROUTE_SRCTABLE)) + ? route->table : RT_TABLE_MAIN; struct rtmsg rtm = { .rtm_family = (alen == 4) ? AF_INET : AF_INET6, |