Commit 376bee6
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.
v2:
- keep "pernet = pm_nl_get_pernet(net);" at the beginning of
mptcp_pm_nl_set_flags().
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>1 parent 0cfdd08 commit 376bee6
2 files changed
+32
-7
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 | | |
| |||
1587 | 1591 | | |
1588 | 1592 | | |
1589 | 1593 | | |
1590 | | - | |
1591 | 1594 | | |
1592 | 1595 | | |
1593 | 1596 | | |
| 1597 | + | |
1594 | 1598 | | |
1595 | 1599 | | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
1596 | 1604 | | |
1597 | 1605 | | |
1598 | 1606 | | |
| |||
1764 | 1772 | | |
1765 | 1773 | | |
1766 | 1774 | | |
1767 | | - | |
1768 | 1775 | | |
1769 | 1776 | | |
1770 | 1777 | | |
| 1778 | + | |
1771 | 1779 | | |
1772 | 1780 | | |
1773 | 1781 | | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
1774 | 1786 | | |
1775 | 1787 | | |
1776 | 1788 | | |
| |||
1986 | 1998 | | |
1987 | 1999 | | |
1988 | 2000 | | |
1989 | | - | |
1990 | 2001 | | |
1991 | 2002 | | |
1992 | 2003 | | |
1993 | 2004 | | |
1994 | 2005 | | |
| 2006 | + | |
1995 | 2007 | | |
1996 | 2008 | | |
1997 | 2009 | | |
1998 | 2010 | | |
1999 | 2011 | | |
2000 | 2012 | | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
2001 | 2017 | | |
2002 | 2018 | | |
2003 | 2019 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
568 | | - | |
569 | | - | |
570 | 568 | | |
| 569 | + | |
571 | 570 | | |
572 | 571 | | |
573 | 572 | | |
574 | 573 | | |
575 | 574 | | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
576 | 579 | | |
577 | 580 | | |
578 | 581 | | |
579 | 582 | | |
580 | 583 | | |
581 | 584 | | |
| 585 | + | |
582 | 586 | | |
583 | 587 | | |
584 | 588 | | |
| |||
590 | 594 | | |
591 | 595 | | |
592 | 596 | | |
| 597 | + | |
593 | 598 | | |
594 | 599 | | |
595 | 600 | | |
| |||
679 | 684 | | |
680 | 685 | | |
681 | 686 | | |
682 | | - | |
683 | 687 | | |
684 | 688 | | |
685 | 689 | | |
| 690 | + | |
686 | 691 | | |
687 | 692 | | |
688 | 693 | | |
689 | 694 | | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
690 | 698 | | |
691 | 699 | | |
692 | 700 | | |
693 | 701 | | |
694 | 702 | | |
695 | 703 | | |
| 704 | + | |
696 | 705 | | |
697 | 706 | | |
698 | 707 | | |
| |||
0 commit comments