diff options
author | 2021-10-13 15:21:39 +0200 | |
---|---|---|
committer | 2021-10-14 19:16:21 -0700 | |
commit | c8e80c1169b2b3b91453f9ff3c34687c42233ef7 (patch) | |
tree | 9220e491e84de99c5c68d3fe1e015bfec13429ba /net/mctp/route.c | |
parent | net, neigh: Add build-time assertion to avoid neigh->flags overflow (diff) | |
download | wireguard-linux-c8e80c1169b2b3b91453f9ff3c34687c42233ef7.tar.xz wireguard-linux-c8e80c1169b2b3b91453f9ff3c34687c42233ef7.zip |
net, neigh: Use NLA_POLICY_MASK helper for NDA_FLAGS_EXT attribute
Instead of open-coding a check for invalid bits in NTF_EXT_MASK, we can just
use the NLA_POLICY_MASK() helper instead, and simplify NDA_FLAGS_EXT sanity
check this way.
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/mctp/route.c')
0 files changed, 0 insertions, 0 deletions