OSDN Git Service

net/ipv4: Add support for specifying metric of connected routes
authorDavid Ahern <dsahern@gmail.com>
Sun, 27 May 2018 15:09:57 +0000 (08:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 May 2018 14:12:45 +0000 (10:12 -0400)
commitaf4d768ad28cbf6542ba70dba10b49127b31b762
treea9491a2cbbff82fd3159ffd24f6f5d7442299090
parent620dee9415fae09003d012cc7c23b011e5ebb43d
net/ipv4: Add support for specifying metric of connected routes

Add support for IFA_RT_PRIORITY to ipv4 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 replaced.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/inetdevice.h
include/net/route.h
net/ipv4/devinet.c
net/ipv4/fib_frontend.c