diff options
author | David Ahern <dsahern@gmail.com> | 2018-06-28 13:36:55 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-30 20:49:58 +0900 |
commit | e7c7faa936680a2f0e78fc6d9683a5728421a150 (patch) | |
tree | 1c20dde274b370725975b1a4160e3f1f1324f6e3 /.clang-format | |
parent | d14b56f508ad70eca3e659545aab3c45200f258c (diff) |
net/ipv6: Fix updates to prefix route
Sowmini reported that a recent commit broke prefix routes for linklocal
addresses. The newly added modify_prefix_route is attempting to add a
new prefix route when the ifp priority does not match the route metric
however the check needs to account for the default priority. In addition,
the route add fails because the route already exists, and then the delete
removes the one that exists. Flip the order to do the delete first.
Fixes: 8308f3ff1753 ("net/ipv6: Add support for specifying metric of connected routes")
Reported-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Tested-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions