]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbd4824f01c62ec6e2853a95b6649ba2f5183839f
treea9491a2cbbff82fd3159ffd24f6f5d7442299090
parentd4f5944457f2135fcefff65939563b61b84c76c3
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