commit | 5b9ac1902916944ae41478b408a560f7b7eb42e5 | [log] [tgz] |
---|---|---|
author | Andrew Vagin <avagin@openvz.org> | Wed Sep 23 14:43:46 2015 +0300 |
committer | Stephen Hemminger <shemming@brocade.com> | Wed Sep 23 16:16:19 2015 -0700 |
tree | 805952def61edbd6df9369db3b71b3e1eacff71f | |
parent | 6c19ff10b5bdf2f2f20e340d2cba4115da4eb7ef [diff] |
route: filter routes by family if it's specified Currently when we specify AF_INET6 when it is disabled, we will get all routes. For example, we can boot kernel with ipv6.disable=1 and try to get ipv6 routes: $ ip -6 route show default via 192.168.122.1 dev eth0 proto static metric 100 192.168.122.0/24 dev eth0 proto kernel scope link src 192.168.122.141 metric 100 Here are ipv4 routes and this is unexpected behaviour. Signed-off-by: Andrew Vagin <avagin@openvz.org>