[posix] set default IPv6 hop limit to OPENTHREAD_CONFIG_IP6_HOP_LIMIT_DEFAULT (#5736)

This commit is contained in:
Jonathan Hui
2020-10-29 07:46:39 -07:00
committed by GitHub
parent fc159a706f
commit b22d1dc084
+1 -1
View File
@@ -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;