Commit 65b07b8
mptcp: add id parameter for get_addr
The address id is parsed both in mptcp_pm_nl_get_addr() and
mptcp_userspace_pm_get_addr(), this makes the code somewhat repetitive.
So this patch adds a new parameter 'id' for all get_addr() interfaces.
The address id is only parsed in mptcp_pm_nl_get_addr_doit(), then pass
it to both mptcp_pm_nl_get_addr() and mptcp_userspace_pm_get_addr().
Signed-off-by: Geliang Tang <[email protected]>1 parent 38efebe commit 65b07b8
4 files changed
+20
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
| 437 | + | |
438 | 438 | | |
439 | 439 | | |
440 | | - | |
441 | | - | |
| 440 | + | |
| 441 | + | |
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
446 | | - | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
447 | 455 | | |
448 | 456 | | |
449 | 457 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1762 | 1762 | | |
1763 | 1763 | | |
1764 | 1764 | | |
1765 | | - | |
| 1765 | + | |
1766 | 1766 | | |
1767 | | - | |
1768 | 1767 | | |
1769 | | - | |
| 1768 | + | |
1770 | 1769 | | |
1771 | 1770 | | |
1772 | 1771 | | |
1773 | 1772 | | |
1774 | | - | |
1775 | | - | |
1776 | | - | |
1777 | | - | |
1778 | 1773 | | |
1779 | 1774 | | |
1780 | 1775 | | |
| |||
1788 | 1783 | | |
1789 | 1784 | | |
1790 | 1785 | | |
1791 | | - | |
| 1786 | + | |
1792 | 1787 | | |
1793 | 1788 | | |
1794 | 1789 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
666 | | - | |
| 666 | + | |
667 | 667 | | |
668 | | - | |
669 | | - | |
| 668 | + | |
670 | 669 | | |
671 | 670 | | |
672 | 671 | | |
| |||
679 | 678 | | |
680 | 679 | | |
681 | 680 | | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | 681 | | |
687 | 682 | | |
688 | 683 | | |
| |||
699 | 694 | | |
700 | 695 | | |
701 | 696 | | |
702 | | - | |
| 697 | + | |
703 | 698 | | |
704 | 699 | | |
705 | 700 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1131 | 1131 | | |
1132 | 1132 | | |
1133 | 1133 | | |
1134 | | - | |
1135 | | - | |
| 1134 | + | |
| 1135 | + | |
1136 | 1136 | | |
1137 | 1137 | | |
1138 | 1138 | | |
| |||
0 commit comments