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 /proto.c | |
parent | 19e05a68ba2c5d11480ddd23d9b0d5756cbc8183 (diff) |
IPv6: Use source-routing to allow multi-wan
Diffstat (limited to 'proto.c')
-rw-r--r-- | proto.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -251,6 +251,12 @@ parse_gateway_option(struct interface *iface, struct blob_attr *attr, bool v6) route->mask = 0; route->flags = (v6 ? DEVADDR_INET6 : DEVADDR_INET4); + + if (v6) { + route->table = interface_ip_resolve_v6_rtable(iface->l3_dev.dev->ifindex); + route->flags |= DEVROUTE_SRCTABLE; + } + vlist_add(&iface->proto_ip.route, &route->node, route); return true; |