diff options
author | Kuniyuki Iwashima <[email protected]> | 2024-10-21 11:32:30 -0700 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2024-10-29 11:54:57 +0100 |
commit | 2d34429d14f9d09b38a8bee6a972a07228378df6 (patch) | |
tree | ae708096cc63b2482344eae1b2566b5e7bf4e7a4 /tools/perf/scripts/python | |
parent | 26d8db55eeacb7dc78672523f57825916d203de4 (diff) |
ipv4: Factorise RTM_NEWADDR validation to inet_validate_rtm().
rtm_to_ifaddr() validates some attributes, looks up a netdev,
allocates struct in_ifaddr, and validates IFA_CACHEINFO.
There is no reason to delay IFA_CACHEINFO validation.
We will push RTNL down to inet_rtm_newaddr(), and then we want
to complete rtnetlink validation before rtnl_net_lock().
Let's factorise the validation parts.
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions