]> 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)
commitc8897dd908a84a114b27406feb9c26b83fcc8c86
treec6858bda7b0260b1db15fdb4132ffd8245fe90c5
parent019fc4549dedd34c12765aeeb79797bc3dd84dc7
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