sniffed a packet
| 6 | * sniffed a packet |
| 7 | */ |
| 8 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected