diff options
| author | Matthieu Baerts (NGI0) <[email protected]> | 2025-02-07 13:59:25 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2025-02-11 11:46:37 +0000 |
| commit | 8cdc56f99e6c33abc855891dbd4d802be06d1404 (patch) | |
| tree | d5d572a299753de4f32adc6a68c78c9077d27837 /net/mptcp/pm.c | |
| parent | mptcp: pm: remove duplicated error messages (diff) | |
| download | kernel-8cdc56f99e6c33abc855891dbd4d802be06d1404.tar.gz kernel-8cdc56f99e6c33abc855891dbd4d802be06d1404.zip | |
mptcp: pm: mark missing address attributes
mptcp_pm_parse_entry() will check if the given attribute is defined. If
not, it will return a generic error: "missing address info".
It might then not be clear for the userspace developer which attribute
is missing, especially when the command takes multiple addresses.
By using GENL_REQ_ATTR_CHECK(), the userspace will get a hint about
which attribute is missing, making thing clearer. Note that this is what
was already done for most of the other MPTCP NL commands, this patch
simply adds the missing ones.
Reviewed-by: Geliang Tang <[email protected]>
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/mptcp/pm.c')
0 files changed, 0 insertions, 0 deletions
