openthread / ot-commissioner

OpenThread Commissioner, a Thread commissioner for joining new Thread devices and managing Thread networks.
https://openthread.io/
BSD 3-Clause "New" or "Revised" License
49 stars 36 forks source link

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

Closed ZhangLe2016 closed 4 months ago

ZhangLe2016 commented 4 months ago

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.