diff options
author | 2021-10-13 15:21:40 +0200 | |
---|---|---|
committer | 2021-10-14 19:16:21 -0700 | |
commit | 30fc7efa38f21afa48b0be6bf2053e4c10ae2c78 (patch) | |
tree | ecb461991215ba2658ce6d311ebb87da4a2a78aa /net/mctp/route.c | |
parent | net, neigh: Use NLA_POLICY_MASK helper for NDA_FLAGS_EXT attribute (diff) | |
download | wireguard-linux-30fc7efa38f21afa48b0be6bf2053e4c10ae2c78.tar.xz wireguard-linux-30fc7efa38f21afa48b0be6bf2053e4c10ae2c78.zip |
net, neigh: Reject creating NUD_PERMANENT with NTF_MANAGED entries
The combination of NUD_PERMANENT + NTF_MANAGED is not supported and does
not make sense either given the former indicates a static/fixed neighbor
entry whereas the latter a dynamically resolved one. While it is possible
to transition from one over to the other, we should however reject such
creation attempts.
Fixes: 7482e3841d52 ("net, neigh: Add NTF_MANAGED flag for managed neighbor entries")
Suggested-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/mctp/route.c')
0 files changed, 0 insertions, 0 deletions