MCPcopy Index your code
hub / github.com/cSploit/android / Packet

Class Packet

cSploit/src/org/csploit/android/events/Packet.java:8–23  ·  view source on GitHub ↗

sniffed a packet

Source from the content-addressed store, hash-verified

6 * sniffed a packet
7 */
8public class Packet implements Event {
9 public final InetAddress src;
10 public final InetAddress dst;
11 public final int len;
12
13 public Packet(InetAddress src, InetAddress dst, int len) {
14 this.src = src;
15 this.dst = dst;
16 this.len = len;
17 }
18
19 @Override
20 public String toString() {
21 return String.format("Packet: { src='%s', dst='%s', len=%d }", src.getHostAddress(), dst.getHostAddress(), len);
22 }
23}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected