| Package | Description |
|---|---|
| io.pkts.frame | |
| io.pkts.framer | |
| io.pkts.packet | |
| io.pkts.packet.impl | |
| io.pkts.protocol |
| Modifier and Type | Method and Description |
|---|---|
Protocol |
Frame.getProtocol()
Get the protocol of this frame.
|
Protocol |
AbstractFrame.getProtocol()
Get the protocol of this frame.
|
| Modifier and Type | Method and Description |
|---|---|
static PcapGlobalHeader |
PcapGlobalHeader.createDefaultHeader(Protocol protocol) |
Frame |
Frame.getFrame(Protocol p)
Find the frame for protocol p.
|
Frame |
AbstractFrame.getFrame(Protocol p)
Find the frame for protocol p.
|
boolean |
Frame.hasProtocol(Protocol p)
Check whether this frame contains a particular protocol.
|
boolean |
AbstractFrame.hasProtocol(Protocol p)
Check whether this frame contains a particular protocol.
|
| Constructor and Description |
|---|
AbstractFrame(FramerManager framerManager,
PcapGlobalHeader header,
Protocol p,
Buffer payload) |
| Modifier and Type | Method and Description |
|---|---|
Protocol |
EthernetFramer.getProtocol() |
Protocol |
TCPFramer.getProtocol() |
Protocol |
IPv6Framer.getProtocol() |
Protocol |
Framer.getProtocol() |
Protocol |
SctpFramer.getProtocol() |
Protocol |
FramingException.getProtocol() |
Protocol |
RTCPFramer.getProtocol() |
Protocol |
IPv4Framer.getProtocol() |
Protocol |
SIPFramer.getProtocol() |
Protocol |
SllFramer.getProtocol() |
Protocol |
UDPFramer.getProtocol() |
Protocol |
PcapFramer.getProtocol() |
Protocol |
RTPFramer.getProtocol() |
| Modifier and Type | Method and Description |
|---|---|
Protocol |
Packet.getProtocol()
Get the protocol of this frame.
|
| Modifier and Type | Method and Description |
|---|---|
TransportPacket |
TransportPacketFactory.create(Protocol protocol,
byte[] srcAddress,
int srcPort,
byte[] destAddress,
int destPort,
Buffer payload)
Create a new
TransportPacket. |
TransportPacket |
TransportPacketFactory.create(Protocol protocol,
String srcAddress,
int srcPort,
String destAddress,
int destPort,
Buffer payload)
Create a new
TransportPacket. |
Packet |
Packet.getPacket(Protocol p)
Find the packet for protocol p.
|
boolean |
Packet.hasProtocol(Protocol p)
Check whether this packet contains a particular protocol.
|
| Modifier and Type | Method and Description |
|---|---|
Protocol |
MACPacketImpl.getNextProtocol() |
Protocol |
AbstractPacket.getProtocol() |
| Modifier and Type | Method and Description |
|---|---|
Packet |
AbstractPacket.checkParent(Protocol p) |
TransportPacket |
TransportPacketFactoryImpl.create(Protocol protocol,
byte[] srcAddress,
int srcPort,
byte[] destAddress,
int destPort,
Buffer payload) |
TransportPacket |
TransportPacketFactoryImpl.create(Protocol protocol,
String srcAddress,
int srcPort,
String destAddress,
int destPort,
Buffer payload)
Create a new
TransportPacket. |
Packet |
AbstractPacket.getPacket(Protocol p) |
boolean |
AbstractPacket.hasProtocol(Protocol p) |
| Constructor and Description |
|---|
AbstractApplicationPacket(Protocol p,
TransportPacket parent,
Buffer payload) |
AbstractPacket(Protocol p,
Packet parent,
Buffer payload) |
MACPacketImpl(Protocol protocol,
PCapPacket parent,
Buffer headers,
Buffer payload)
Construct a new
MACPacket based on the supplied headers. |
TransportPacketImpl(IPPacket parent,
Protocol protocol,
Buffer headers,
Buffer payload) |
| Modifier and Type | Method and Description |
|---|---|
Protocol |
IllegalProtocolException.getProtocol()
The
Protocol that the user tried to use in the wrong text and as
such this exception was generated. |
static Protocol |
Protocol.valueOf(byte code)
Get a protocol based on it's defined byte code.
|
static Protocol |
Protocol.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Protocol[] |
Protocol.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
IllegalProtocolException(Protocol protocol) |
IllegalProtocolException(Protocol protocol,
String message) |
IllegalProtocolException(Protocol protocol,
String message,
Throwable cause) |
IllegalProtocolException(Protocol protocol,
Throwable cause) |
Copyright © 2021. All Rights Reserved.