public class DefaultVirtualPacketContext extends org.onosproject.net.packet.DefaultPacketContext implements VirtualPacketContext
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultVirtualPacketContext(long time,
org.onosproject.net.packet.InboundPacket inPkt,
org.onosproject.net.packet.OutboundPacket outPkt,
boolean block,
NetworkId networkId,
DefaultVirtualPacketProvider dvpp)
Creates a new packet context.
|
| Modifier and Type | Method and Description |
|---|---|
NetworkId |
networkId()
Returns the network identifier.
|
void |
send() |
block, inPacket, isHandled, outPacket, time, treatmentBuilderprotected DefaultVirtualPacketContext(long time,
org.onosproject.net.packet.InboundPacket inPkt,
org.onosproject.net.packet.OutboundPacket outPkt,
boolean block,
NetworkId networkId,
DefaultVirtualPacketProvider dvpp)
time - creation timeinPkt - inbound packetoutPkt - outbound packetblock - whether the context is blocked or notnetworkId - virtual network ID where this context is handleddvpp - pointer to default virtual packet providerpublic void send()
send in interface org.onosproject.net.packet.PacketContextsend in class org.onosproject.net.packet.DefaultPacketContextpublic NetworkId networkId()
VirtualPacketContextnetworkId in interface VirtualPacketContext