mirror of
https://github.com/espressif/openthread.git
synced 2026-08-14 22:57:46 +00:00
[posix] set link type to none explicitly (#8526)
Linux kernels with CONFIG_MCTP enable (available in 5.16 or newer) seem to have an issue when setting the link type to ARPHRD_VOID. There seem to be no good reason why ARPHRD_VOID is used. Stick to the default ARPHRD_NONE.
This commit is contained in:
@@ -1721,7 +1721,7 @@ static void platformConfigureTunDevice(otPlatformConfig *aPlatformConfig)
|
||||
SetLinkState(gInstance, false);
|
||||
}
|
||||
|
||||
VerifyOrDie(ioctl(sTunFd, TUNSETLINK, ARPHRD_VOID) == 0, OT_EXIT_ERROR_ERRNO);
|
||||
VerifyOrDie(ioctl(sTunFd, TUNSETLINK, ARPHRD_NONE) == 0, OT_EXIT_ERROR_ERRNO);
|
||||
|
||||
ifr.ifr_mtu = static_cast<int>(kMaxIp6Size);
|
||||
VerifyOrDie(ioctl(sIpFd, SIOCSIFMTU, static_cast<void *>(&ifr)) == 0, OT_EXIT_ERROR_ERRNO);
|
||||
|
||||
Reference in New Issue
Block a user