Home
last modified time | relevance | path

Searched refs:kHopLimit (Results 1 – 2 of 2) sorted by relevance

/openthread-latest/tests/unit/
Dtest_ip6_header.cpp56 static constexpr uint8_t kHopLimit = 0xd1; in TestIp6Header() local
84 header.SetHopLimit(kHopLimit); in TestIp6Header()
92 VerifyOrQuit(header.GetHopLimit() == kHopLimit); in TestIp6Header()
101 …VerifyOrQuit(headerBytes[Header::kHopLimitFieldOffset] == kHopLimit, "kHopLimitFieldOffset is inco… in TestIp6Header()
/openthread-latest/src/posix/platform/
Dinfra_if.cpp136 const int kHopLimit = 255; in CreateIcmp6Socket() local
166 rval = setsockopt(sock, IPPROTO_IPV6, IPV6_UNICAST_HOPS, &kHopLimit, sizeof(kHopLimit)); in CreateIcmp6Socket()
169 rval = setsockopt(sock, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, &kHopLimit, sizeof(kHopLimit)); in CreateIcmp6Socket()