Commit 47d3c02
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.
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>1 parent 3127e61 commit 47d3c02
2 files changed
+33
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1393 | 1393 | | |
1394 | 1394 | | |
1395 | 1395 | | |
1396 | | - | |
1397 | 1396 | | |
1398 | 1397 | | |
| 1398 | + | |
1399 | 1399 | | |
1400 | 1400 | | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
1401 | 1405 | | |
1402 | 1406 | | |
1403 | 1407 | | |
| |||
1590 | 1594 | | |
1591 | 1595 | | |
1592 | 1596 | | |
1593 | | - | |
1594 | 1597 | | |
1595 | 1598 | | |
1596 | 1599 | | |
| 1600 | + | |
1597 | 1601 | | |
1598 | 1602 | | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
1599 | 1607 | | |
1600 | 1608 | | |
1601 | 1609 | | |
| |||
1767 | 1775 | | |
1768 | 1776 | | |
1769 | 1777 | | |
1770 | | - | |
1771 | 1778 | | |
1772 | 1779 | | |
1773 | 1780 | | |
| 1781 | + | |
1774 | 1782 | | |
1775 | 1783 | | |
1776 | 1784 | | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
1777 | 1789 | | |
1778 | 1790 | | |
1779 | 1791 | | |
| |||
1989 | 2001 | | |
1990 | 2002 | | |
1991 | 2003 | | |
1992 | | - | |
1993 | 2004 | | |
1994 | 2005 | | |
1995 | 2006 | | |
1996 | 2007 | | |
1997 | 2008 | | |
| 2009 | + | |
1998 | 2010 | | |
1999 | 2011 | | |
2000 | 2012 | | |
2001 | 2013 | | |
2002 | | - | |
| 2014 | + | |
| 2015 | + | |
2003 | 2016 | | |
| 2017 | + | |
2004 | 2018 | | |
2005 | 2019 | | |
2006 | 2020 | | |
| |||
2017 | 2031 | | |
2018 | 2032 | | |
2019 | 2033 | | |
| 2034 | + | |
| 2035 | + | |
2020 | 2036 | | |
2021 | 2037 | | |
2022 | 2038 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
574 | | - | |
575 | 573 | | |
| 574 | + | |
576 | 575 | | |
577 | 576 | | |
578 | 577 | | |
579 | 578 | | |
580 | 579 | | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
581 | 584 | | |
582 | 585 | | |
583 | 586 | | |
584 | 587 | | |
585 | 588 | | |
586 | 589 | | |
| 590 | + | |
587 | 591 | | |
588 | 592 | | |
589 | 593 | | |
| |||
595 | 599 | | |
596 | 600 | | |
597 | 601 | | |
| 602 | + | |
598 | 603 | | |
599 | 604 | | |
600 | 605 | | |
| |||
683 | 688 | | |
684 | 689 | | |
685 | 690 | | |
686 | | - | |
687 | 691 | | |
688 | 692 | | |
689 | 693 | | |
| 694 | + | |
690 | 695 | | |
691 | 696 | | |
692 | 697 | | |
693 | 698 | | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
694 | 702 | | |
695 | 703 | | |
696 | 704 | | |
697 | 705 | | |
698 | 706 | | |
699 | 707 | | |
| 708 | + | |
700 | 709 | | |
701 | 710 | | |
702 | 711 | | |
| |||
0 commit comments