Home
last modified time | relevance | path

Searched refs:mPacket (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/net/java/android/net/util/
DConnectivityPacketSummary.java46 private final ByteBuffer mPacket; field in ConnectivityPacketSummary
65 mPacket = ByteBuffer.wrap(mBytes, 0, mLength); in ConnectivityPacketSummary()
66 mPacket.order(ByteOrder.BIG_ENDIAN); in ConnectivityPacketSummary()
79 if (mPacket.remaining() < ETHER_HEADER_LEN) { in parseEther()
80 sj.add("runt:").add(asString(mPacket.remaining())); in parseEther()
84 mPacket.position(ETHER_SRC_ADDR_OFFSET); in parseEther()
85 final ByteBuffer srcMac = (ByteBuffer) mPacket.slice().limit(ETHER_ADDR_LEN); in parseEther()
89 mPacket.position(ETHER_DST_ADDR_OFFSET); in parseEther()
90 final ByteBuffer dstMac = (ByteBuffer) mPacket.slice().limit(ETHER_ADDR_LEN); in parseEther()
93 mPacket.position(ETHER_TYPE_OFFSET); in parseEther()
[all …]
DPacketReader.java78 private final byte[] mPacket; field in PacketReader
93 mPacket = new byte[Math.max(recvbufsize, DEFAULT_RECV_BUF_SIZE)]; in PacketReader()
120 public final int recvBufSize() { return mPacket.length; } in recvBufSize()
207 bytesRead = readPacket(mFd, mPacket); in handleInput()
229 handlePacket(mPacket, bytesRead); in handleInput()
/frameworks/base/services/net/java/android/net/apf/
DApfFilter.java173 private final byte[] mPacket = new byte[1514]; field in ApfFilter.ReceiveThread
197 int length = Os.read(mSocket, mPacket, 0, mPacket.length); in run()
198 updateStats(processRa(mPacket, length)); in run()
501 private final ByteBuffer mPacket; field in ApfFilter.Ra
522 return HexDump.toHexString(mPacket.array(), 0, mPacket.capacity(), in getLastMatchingPacket()
530 byte[] array = mPacket.array(); in IPv6AddresstoString()
552 int length = getUint8(mPacket, offset + 2); in prefixOptionToString()
553 long valid = getUint32(mPacket, offset + 4); in prefixOptionToString()
554 long preferred = getUint32(mPacket, offset + 8); in prefixOptionToString()
559 int optLen = getUint8(mPacket, offset + 1) * 8; in rdnssOptionToString()
[all …]
/frameworks/base/core/java/android/net/
DKeepalivePacketData.java54 private final byte[] mPacket; field in KeepalivePacketData
67 this.mPacket = data; in KeepalivePacketData()
91 return mPacket.clone(); in getPacket()
141 out.writeByteArray(mPacket); in writeToParcel()
149 mPacket = in.createByteArray(); in KeepalivePacketData()
/frameworks/base/services/core/java/com/android/server/connectivity/
DKeepaliveTracker.java95 private final KeepalivePacketData mPacket; field in KeepaliveTracker.KeepaliveInfo
109 mPacket = packet; in KeepaliveInfo()
128 .append(IpUtils.addressAndPortToString(mPacket.srcAddress, mPacket.srcPort)) in toString()
130 .append(IpUtils.addressAndPortToString(mPacket.dstAddress, mPacket.dstPort)) in toString()
132 .append(" packetData=" + HexDump.toHexString(mPacket.getPacket())) in toString()
167 if (address.equals(mPacket.srcAddress)) { in checkSourceAddress()
192 mNai.asyncChannel.sendMessage(CMD_START_PACKET_KEEPALIVE, slot, mInterval, mPacket); in start()
/frameworks/base/services/net/java/android/net/dhcp/
DDhcpClient.java350 private final byte[] mPacket = new byte[DhcpPacket.MAX_LENGTH]; field in DhcpClient.ReceiveThread
364 length = Os.read(mPacketSock, mPacket, 0, mPacket.length); in run()
366 packet = DhcpPacket.decodeFullPacket(mPacket, length, DhcpPacket.ENCAP_L2); in run()
377 Log.d(TAG, HexDump.dumpHexString(mPacket, 0, length)); in run()