]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6: Add support for specifying metric of connected routes
authorDavid Ahern <dsahern@gmail.com>
Sun, 27 May 2018 15:09:58 +0000 (08:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 May 2018 14:12:45 +0000 (10:12 -0400)
commitcc389405590d319b06cc9beabf039c9bbb4d4296
treec6858bda7b0260b1db15fdb4132ffd8245fe90c5
parentbd4824f01c62ec6e2853a95b6649ba2f5183839f
net/ipv6: Add support for specifying metric of connected routes

Add support for IFA_RT_PRIORITY to ipv6 addresses.

If the metric is changed on an existing address then the new route
is inserted before removing the old one. Since the metric is one
of the route keys, the prefix route can not be atomically replaced.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/addrconf.h
include/net/if_inet6.h
net/ipv6/addrconf.c