diff options
author | Paolo Abeni <pabeni@redhat.com> | 2015-10-20 10:28:45 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-23 02:54:54 -0700 |
commit | 7b1311807f3d3eb8bef3ccc53127838b3bea3771 (patch) | |
tree | ee60267627b26a4237aeb1eaf12279ba4eaf54a0 /include/net/inet_hashtables.h | |
parent | c0c050c58d840994ba842ad1c338a98e7c12b764 (diff) | |
download | linux-stable-7b1311807f3d3eb8bef3ccc53127838b3bea3771.tar.gz linux-stable-7b1311807f3d3eb8bef3ccc53127838b3bea3771.tar.bz2 linux-stable-7b1311807f3d3eb8bef3ccc53127838b3bea3771.zip |
ipv4: implement support for NOPREFIXROUTE ifa flag for ipv4 address
Currently adding a new ipv4 address always cause the creation of the
related network route, with default metric. When a host has multiple
interfaces on the same network, multiple routes with the same metric
are created.
If the userspace wants to set specific metric on each routes, i.e.
giving better metric to ethernet links in respect to Wi-Fi ones,
the network routes must be deleted and recreated, which is error-prone.
This patch implements the support for IFA_F_NOPREFIXROUTE for ipv4
address. When an address is added with such flag set, no associated
network route is created, no network route is deleted when
said IP is gone and it's up to the user space manage such route.
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet_hashtables.h')
0 files changed, 0 insertions, 0 deletions