summaryrefslogtreecommitdiff
path: root/net/l2tp
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@nvidia.com>2024-03-11 19:23:04 +0300
committerJakub Kicinski <kuba@kernel.org>2024-03-12 06:35:20 +0300
commitdc5e0141ff19439bfe8d54fce6d6b834bdf1efe0 (patch)
tree976dabc449949a2d5b2fcca620f820c6ffed4995 /net/l2tp
parent5f20e6ab1f65aaaaae248e6946d5cb6d039e7de8 (diff)
downloadlinux-dc5e0141ff19439bfe8d54fce6d6b834bdf1efe0.tar.xz
nexthop: Only parse NHA_OP_FLAGS for get messages that require it
The attribute is parsed into 'op_flags' in nh_valid_get_del_req() which is called from the handlers of three message types: RTM_DELNEXTHOP, RTM_GETNEXTHOPBUCKET and RTM_GETNEXTHOP. The attribute is only used by the latter and rejected by the policies of the other two. Pass 'op_flags' as NULL from the handlers of the other two and only parse the attribute when the argument is not NULL. This is a preparation for a subsequent patch. Signed-off-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: David Ahern <dsahern@kernel.org> Link: https://lore.kernel.org/r/20240311162307.545385-2-idosch@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/l2tp')
0 files changed, 0 insertions, 0 deletions