-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
base: main
Are you sure you want to change the base?
net: ipv6: Make Multicast Listener Discovery API public #79274
Conversation
include/zephyr/net/mld.h
Outdated
* @param iface Network interface where join message is sent | ||
* @param addr Multicast group to join | ||
* | ||
* @return Return 0 if joining was done, <0 otherwise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @return Return 0 if joining was done, <0 otherwise. | |
* @return 0 if joining was done, <0 otherwise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
include/zephyr/net/mld.h
Outdated
* @param iface Network interface where leave message is sent | ||
* @param addr Multicast group to leave | ||
* | ||
* @return Return 0 if leaving is done, <0 otherwise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @return Return 0 if leaving is done, <0 otherwise. | |
* @return 0 if leaving is done, <0 otherwise. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
1b5f70c
to
29c2aa7
Compare
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]>
29c2aa7
to
0f970a8
Compare
Rebased & resolved conflict |
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.