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)
commit8308f3ff1753d001f7a73f9bb0f02292b5400557
treec6858bda7b0260b1db15fdb4132ffd8245fe90c5
parentaf4d768ad28cbf6542ba70dba10b49127b31b762
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