Home
last modified time | relevance | path

Searched refs:slla (Results 1 – 8 of 8) sorted by relevance

/packages/modules/NetworkStack/src/com/android/networkstack/packets/
DNeighborSolicitation.java55 public final LlaOption slla; field in NeighborSolicitation
59 @NonNull final NsHeader nsHdr, @Nullable final LlaOption slla) { in NeighborSolicitation() argument
64 this.slla = slla; in NeighborSolicitation()
75 final int sllaOptionLen = (slla == null) ? 0 : Struct.getSize(LlaOption.class); in toByteBuffer()
83 if (slla != null) { in toByteBuffer()
84 slla.writeToByteBuffer(packet); in toByteBuffer()
97 final ByteBuffer slla = LlaOption.build((byte) ICMPV6_ND_OPTION_SLLA, srcMac); in build() local
98 return Ipv6Utils.buildNsPacket(srcMac, dstMac, srcIp, dstIp, target, slla); in build()
117 final LlaOption slla = (packet.remaining() == 0) in parse() local
121 return new NeighborSolicitation(ethHdr, ipv6Hdr, icmpv6Hdr, nsHdr, slla); in parse()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/packets/
DNeighborSolicitationTest.java222 assertEquals(ICMPV6_ND_OPTION_SLLA, ns.slla.type); in assertNeighborSolicitation()
223 assertEquals(1, ns.slla.length); in assertNeighborSolicitation()
224 assertEquals(MacAddress.fromBytes(TEST_SOURCE_MAC_ADDR), ns.slla.linkLayerAddress); in assertNeighborSolicitation()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/
DInfraNetworkDevice.java85 ByteBuffer slla = LlaOption.build((byte) ICMPV6_ND_OPTION_SLLA, macAddr); in sendRsPacket() local
90 slla); in sendRsPacket()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/
DNSResponder.kt64 val slla = parseOrLog(LlaOption::class.java, buf) ?: return in replyToPacket() constant
65 val requesterMac = slla.linkLayerAddress in replyToPacket()
/packages/modules/Connectivity/Tethering/src/android/net/ip/
DRouterAdvertisementDaemon.java390 private static void putSlla(ByteBuffer ra, byte[] slla) { in putSlla() argument
391 if (slla == null || slla.length != 6) { in putSlla()
397 MacAddress.fromBytes(slla)); in putSlla()
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/
DRouterAdvertisementDaemonTest.java298 final ByteBuffer slla = LlaOption.build((byte) ICMPV6_ND_OPTION_SLLA, srcMac); in createRsPacket() local
301 IPV6_ADDR_ALL_NODES_MULTICAST, slla); in createRsPacket()
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/
DTetheringTester.java381 ByteBuffer slla = LlaOption.build((byte) ICMPV6_ND_OPTION_SLLA, srcMac); in sendRsPacket() local
383 IPV6_ADDR_ALL_NODES_MULTICAST, slla); in sendRsPacket()
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java2172 final ByteBuffer slla = buildSllaOption();
2173 final ByteBuffer ra = buildRaPacket(pio, rdnss, slla);
2271 final ByteBuffer slla = buildSllaOption();
2272 final ByteBuffer ra = buildRaPacket(pio, rdnss, slla);
3087 final ByteBuffer slla = buildSllaOption();
3088 final ByteBuffer ra = buildRaPacket(pio, rdnss, slla);
3944 assertEquals(ns.slla.linkLayerAddress, ns.ethHdr.srcMac);