Package org.onosproject.net.packet
Interface InboundPacket
-
- All Known Implementing Classes:
DefaultInboundPacket
public interface InboundPacket
Represents a data packet intercepted from an infrastructure device.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<java.lang.Long>
cookie()
Returns the cookie in the packet in message.Ethernet
parsed()
Returns the parsed form of the packet.ConnectPoint
receivedFrom()
Returns the device and port from where the packet was received.java.nio.ByteBuffer
unparsed()
Unparsed packet data.
-
-
-
Method Detail
-
receivedFrom
ConnectPoint receivedFrom()
Returns the device and port from where the packet was received.- Returns:
- connection point where received
-
parsed
Ethernet parsed()
Returns the parsed form of the packet.- Returns:
- parsed Ethernet frame; null if the packet is not an Ethernet frame or one for which there is no parser
-
unparsed
java.nio.ByteBuffer unparsed()
Unparsed packet data.- Returns:
- raw packet bytes
-
cookie
java.util.Optional<java.lang.Long> cookie()
Returns the cookie in the packet in message.- Returns:
- optional flow cookie
-
-