diff options
| author | Antony Antony <antony.antony@secunet.com> | 2026-05-26 21:09:10 +0200 |
|---|---|---|
| committer | Steffen Klassert <steffen.klassert@secunet.com> | 2026-06-04 12:22:44 +0200 |
| commit | 38d400e5d0fd8d8ef394b8ebea3088e6482528f8 (patch) | |
| tree | ad2c56ce0fc71e656fbdc9a2f9ef970e90ba7fe1 /include | |
| parent | 92550d30c69b22e34653a03c142433980688465b (diff) | |
| download | lwn-38d400e5d0fd8d8ef394b8ebea3088e6482528f8.tar.gz lwn-38d400e5d0fd8d8ef394b8ebea3088e6482528f8.zip | |
xfrm: extract address family and selector validation helpers
Extract verify_xfrm_family() and verify_selector_prefixlen() from
verify_newsa_info() to allow reuse by other netlink handlers.
verify_xfrm_family() validates that a given address family is AF_INET
or AF_INET6 (with CONFIG_IPV6 guard).
verify_selector_prefixlen() validates that the selector prefix lengths
are within the bounds for the given address family.
No functional change.
Signed-off-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
