Skip to content

Conversation

@matttbe
Copy link
Member

@matttbe matttbe commented Nov 25, 2025

Mainly to add a comment about that: it cannot be set from the userspace, so it should not be used in path-managers.

Suggested-by: @sskras

Mainly to add a comment about that: it cannot be set from the userspace,
so it should not be used in path-managers.

Suggested-by: Saulius Krasuckas <[email protected]>
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
@coveralls
Copy link

Pull Request Test Coverage Report for Build 19679730433

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 67.044%

Totals Coverage Status
Change from base Build 19644312326: 0.0%
Covered Lines: 1481
Relevant Lines: 2209

💛 - Coveralls

*
* @note Do not set from the userspace to the kernelspace.
*/
#define MPTCPD_ADDR_FLAG_IMPLICIT (1U << 4)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, thanks. Then I wonder whether it's possible to somehow protect this define against using it in the userspace... (except from moving it into the comment block, which would also prevent it from using in the kernelspace too).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that's needed:

  • if set, the kernel will reject it anyway. No need to prevent it from mptcpd I think if plugins devs cannot read the doc :)
  • this define is only linked to the in-kernel PM, probably not so many plugins will look at controlling it.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair then! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants