aboutsummaryrefslogtreecommitdiffstats
path: root/net/key
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2014-03-26 19:35:41 +0900
committerZiyann <jaraidaniel@gmail.com>2014-11-27 20:35:02 +0100
commitb26e61d89289654f88886fb7ca278b1eee284c2d (patch)
tree1d62ab1beca28fd329da0cafc58b932d379330df /net/key
parentb3debfcdf277d2ff6e2352e4d3f76682f572e7f9 (diff)
downloadkernel_samsung_tuna-b26e61d89289654f88886fb7ca278b1eee284c2d.zip
kernel_samsung_tuna-b26e61d89289654f88886fb7ca278b1eee284c2d.tar.gz
kernel_samsung_tuna-b26e61d89289654f88886fb7ca278b1eee284c2d.tar.bz2
net: ipv6: autoconf routes into per-device tables
Currently, IPv6 router discovery always puts routes into RT6_TABLE_MAIN. This causes problems for connection managers that want to support multiple simultaneous network connections and want control over which one is used by default (e.g., wifi and wired). To work around this connection managers typically take the routes they prefer and copy them to static routes with low metrics in the main table. This puts the burden on the connection manager to watch netlink to see if the routes have changed, delete the routes when their lifetime expires, etc. Instead, this patch adds a per-interface sysctl to have the kernel put autoconf routes into different tables. This allows each interface to have its own autoconf table, and choosing the default interface (or using different interfaces at the same time for different types of traffic) can be done using appropriate ip rules. The sysctl behaves as follows: - = 0: default. Put routes into RT6_TABLE_MAIN as before. - > 0: manual. Put routes into the specified table. - < 0: automatic. Add the absolute value of the sysctl to the device's ifindex, and use that table. The automatic mode is most useful in conjunction with net.ipv6.conf.default.accept_ra_rt_table. A connection manager or distribution could set it to, say, -100 on boot, and thereafter just use IP rules. Change-Id: I093d39fb06ec413905dc0d0d5792c1bc5d5c73a9 Signed-off-by: Lorenzo Colitti <lorenzo@google.com> Conflicts: net/ipv6/addrconf.c net/ipv6/route.c
Diffstat (limited to 'net/key')
0 files changed, 0 insertions, 0 deletions