mirror of
https://github.com/espressif/openthread.git
synced 2026-07-28 14:47:46 +00:00
[posix] set default IPv6 hop limit to OPENTHREAD_CONFIG_IP6_HOP_LIMIT_DEFAULT (#5736)
This commit is contained in:
@@ -116,7 +116,7 @@ static otError transmitPacket(int aFd, uint8_t *aPayload, uint16_t aLength, cons
|
||||
cmsg = CMSG_FIRSTHDR(&msg);
|
||||
|
||||
{
|
||||
int hopLimit = (aMessageInfo.mHopLimit ? aMessageInfo.mHopLimit : -1);
|
||||
int hopLimit = (aMessageInfo.mHopLimit ? aMessageInfo.mHopLimit : OPENTHREAD_CONFIG_IP6_HOP_LIMIT_DEFAULT);
|
||||
|
||||
cmsg->cmsg_level = IPPROTO_IPV6;
|
||||
cmsg->cmsg_type = IPV6_HOPLIMIT;
|
||||
|
||||
Reference in New Issue
Block a user