public class Packet extends Object
| Constructor and Description |
|---|
Packet() |
| Modifier and Type | Method and Description |
|---|---|
int |
decodePcap(byte[] buffer,
int offset,
boolean byteOrder,
int maxLength) |
byte[] |
getData() |
InetAddress |
getDst_ip() |
int |
getDst_port() |
String |
getEthernetDestination() |
String |
getEthernetSource() |
int |
getPacketLength() |
String |
getPacketType() |
int |
getSequenceNumber() |
long |
getSessionHash() |
InetAddress |
getSrc_ip() |
int |
getSrc_port() |
long |
getTimestamp() |
boolean |
isArpPacket() |
boolean |
isIcmpPacket() |
boolean |
isIpV4Packet() |
boolean |
isIpV6Packet() |
boolean |
isPPPoV6Packet() |
boolean |
isTcpPacket() |
boolean |
isUdpPacket() |
boolean |
readPcap(InputStream in,
boolean byteOrder,
int maxLength) |
public boolean readPcap(InputStream in, boolean byteOrder, int maxLength) throws IOException
IOExceptionpublic int decodePcap(byte[] buffer,
int offset,
boolean byteOrder,
int maxLength)
public String getPacketType()
public boolean isIpV4Packet()
public boolean isIpV6Packet()
public boolean isPPPoV6Packet()
public boolean isTcpPacket()
public boolean isUdpPacket()
public boolean isArpPacket()
public boolean isIcmpPacket()
public long getSessionHash()
public long getTimestamp()
public int getPacketLength()
public InetAddress getSrc_ip()
public InetAddress getDst_ip()
public String getEthernetSource()
public String getEthernetDestination()
public int getSequenceNumber()
public int getSrc_port()
public int getDst_port()
public byte[] getData()
Copyright © 2017 The Apache Software Foundation. All rights reserved.