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

[cli] remove definition of SO_BINDTODEVICE from interpreter module #263

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

ZhangLe2016
Copy link
Contributor

A previously introduced macro SO_BINDOTDEVICE, intended to pass the pre-commit code checks, which is conflicted with an definition in header file named <sys/socket.h>. So we need remove the macro from the interpreter module. To ensure the pre-commit code checks pass, we need to include the approriate header file and call setsocketopt with OS-specific parameters.

module

A previously introduced macro `SO_BINDOTDEVICE`, intended to pass the
pre-commit code checks, which is conflicted with an definition in header
file named <sys/socket.h>. So we need remove the macro from the
interpreter module. To ensure the pre-commit code checks pass, we need
to include the approriate header file and call `setsocketopt` with
OS-specific parameters.
Copy link
Member

@wgtdkp wgtdkp left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@wgtdkp wgtdkp requested a review from jwhui April 28, 2024 09:16
@jwhui jwhui changed the title [cli] remove the macro definition of SO_BINDTODEVICE from interpreter module [cli] remove definition of SO_BINDTODEVICE from interpreter module Apr 29, 2024
@jwhui jwhui merged commit 79d1ddc into openthread:main Apr 29, 2024
33 checks passed
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