Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net: ipv6: Make Multicast Listener Discovery API public #79274

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rlubos
Copy link
Contributor

@rlubos rlubos commented Oct 1, 2024

IPv6 MLD API was so far defined in an internal header. This does not seem correct though, as application code should be able to join/leave multicast groups, hence the API should be exposed in a public header, just as it is done for its IPv4 countepart - IGMP.

pdgendt
pdgendt previously approved these changes Oct 1, 2024
jukkar
jukkar previously approved these changes Oct 2, 2024
* @param iface Network interface where join message is sent
* @param addr Multicast group to join
*
* @return Return 0 if joining was done, <0 otherwise.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* @return Return 0 if joining was done, <0 otherwise.
* @return 0 if joining was done, <0 otherwise.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

* @param iface Network interface where leave message is sent
* @param addr Multicast group to leave
*
* @return Return 0 if leaving is done, <0 otherwise.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* @return Return 0 if leaving is done, <0 otherwise.
* @return 0 if leaving is done, <0 otherwise.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

/**
* @brief MLD (Multicast Listener Discovery)
* @defgroup mld Multicast Listener Discovery API
* @since 1.8
Copy link
Collaborator

Choose a reason for hiding this comment

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

I understand the API existed before as internal but it seems odd to state 1.8 here since strictly speaking it's being introduced only now as public API?

Copy link
Member

Choose a reason for hiding this comment

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

The API could have been called earlier too by the application even if it was internal, so I think it is ok to have the version set when the API was created.

@rlubos rlubos dismissed stale reviews from jukkar and pdgendt via 29c2aa7 October 4, 2024 09:14
@rlubos rlubos force-pushed the net/make-ipv6-mld-api-public branch from 1b5f70c to 29c2aa7 Compare October 4, 2024 09:14
pdgendt
pdgendt previously approved these changes Oct 4, 2024
kartben
kartben previously approved these changes Oct 4, 2024
IPv6 MLD API was so far defined in an internal header. This does not
seem correct though, as application code should be able to join/leave
multicast groups, hence the API should be exposed in a public header,
just as it is done for its IPv4 countepart - IGMP.

Signed-off-by: Robert Lubos <[email protected]>
@rlubos rlubos dismissed stale reviews from kartben and pdgendt via 0f970a8 October 4, 2024 09:44
@rlubos rlubos force-pushed the net/make-ipv6-mld-api-public branch from 29c2aa7 to 0f970a8 Compare October 4, 2024 09:44
@rlubos
Copy link
Contributor Author

rlubos commented Oct 4, 2024

Rebased & resolved conflict

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants