Commit 1cee223
mptcp: pm: more precise error messages
Some errors reported by the userspace PM were vague: "this or that is
invalid".
It is easier for the userspace to know which part is wrong, instead of
having to guess that.
By splitting some error messages, NL_SET_ERR_MSG_ATTR() can be used
instead of GENL_SET_ERR_MSG() in order to give an additional hint to the
userspace developers about which attribute is wrong.
While at it, in mptcp_userspace_pm_set_flags() move the parsing after
the check linked to the local attribute.
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>1 parent 33220a7 commit 1cee223
1 file changed
+26
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
227 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
228 | 234 | | |
229 | 235 | | |
230 | 236 | | |
| |||
531 | 537 | | |
532 | 538 | | |
533 | 539 | | |
534 | | - | |
535 | | - | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
536 | 548 | | |
537 | 549 | | |
538 | 550 | | |
| |||
580 | 592 | | |
581 | 593 | | |
582 | 594 | | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
583 | 602 | | |
584 | 603 | | |
585 | 604 | | |
586 | 605 | | |
587 | | - | |
588 | | - | |
589 | | - | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
590 | 609 | | |
591 | 610 | | |
592 | 611 | | |
| |||
0 commit comments