Home
last modified time | relevance | path

Searched refs:hopLimit (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/structs/
DRaHeader.java43 public final byte hopLimit; field in RaHeader
54 public RaHeader(final byte hopLimit, final byte flags, final int lifetime, in RaHeader() argument
56 this.hopLimit = hopLimit; in RaHeader()
DIpv6Header.java60 public short hopLimit; field in Ipv6Header
67 final short hopLimit, final Inet6Address srcIp, final Inet6Address dstIp) { in Ipv6Header() argument
71 this.hopLimit = hopLimit; in Ipv6Header()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DIpv6UtilsTest.java64 assertEquals(255, ipv6.hopLimit); in testBuildRsPacket()
93 assertEquals(255, ipv6.hopLimit); in testBuildRaPacket()
103 assertEquals(0, ra.hopLimit); // Hop limit: unspecified. in testBuildRaPacket()
124 assertEquals(255, ipv6.hopLimit); in testBuildEchoRequestPacket()
139 assertEquals(255, ipv6.hopLimit); in testBuildEchoReplyPacket()
DPacketBuilderTest.java641 assertEquals(HOP_LIMIT, ipv6Header.hopLimit); in checkIpv6Header()
/packages/modules/Connectivity/Tethering/src/android/net/ip/
DRouterAdvertisementDaemon.java136 public byte hopLimit; field in RouterAdvertisementDaemon.RaParams
143 hopLimit = DEFAULT_HOPLIMIT; in RaParams()
151 hopLimit = other.hopLimit; in RaParams()
310 haveRaParams ? mRaParams.hopLimit : RaParams.DEFAULT_HOPLIMIT); in assembleRaLocked()
377 private static void putHeader(ByteBuffer ra, boolean hasDefaultRoute, byte hopLimit) { in putHeader() argument
384 final RaHeader raHeader = new RaHeader(hopLimit, flags, lifetime, 0 /* reachableTime */, in putHeader()
DIpServer.java794 if (params.hasDefaultRoute) params.hopLimit = getHopLimit(upstreamIface, ttlAdjustment); in updateUpstreamIPv6LinkProperties()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/
DPacketBuilder.java150 public void writeIpv6Header(int vtf, byte nextHeader, short hopLimit, in writeIpv6Header() argument
156 hopLimit, srcIp, dstIp); in writeIpv6Header()
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/
DRouterAdvertisementDaemonTest.java188 assertEquals(mNewParams.hopLimit, raHdr.hopLimit); in isPacketMatched()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/packets/
DNeighborSolicitationTest.java215 assertEquals(0xff, ns.ipv6Hdr.hopLimit); in assertNeighborSolicitation()
DNeighborAdvertisementTest.java214 assertEquals(0xff, na.ipv6Hdr.hopLimit); in assertNeighborAdvertisement()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/
DFullThreadDevice.java461 int hopLimit, in ping() argument
475 + hopLimit in ping()
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java854 assertEquals(65, noV6Params.hopLimit); in testAdjustTtlValue()
863 assertEquals(65, nonCellularParams.hopLimit); in testAdjustTtlValue()
869 assertEquals(65, nonCellularParams.hopLimit); in testAdjustTtlValue()
875 assertEquals(63, cellularParams.hopLimit); in testAdjustTtlValue()
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java3779 assertEquals(0xff, na.ipv6Hdr.hopLimit);
3797 assertEquals(0xff, ns.ipv6Hdr.hopLimit);
3938 assertEquals(0xff, ns.ipv6Hdr.hopLimit);