public class Forwarding extends ForwardingBase
Modifier and Type | Field and Description |
---|---|
(package private) OFProtocol |
protocol |
appCookie, broadcastCache, broadcastCacheFeature, clusterIdComparator, deviceManager, FLOWMOD_DEFAULT_HARD_TIMEOUT, FLOWMOD_DEFAULT_IDLE_TIMEOUT, FORWARDING_APP_ID, messageDamper, OFMESSAGE_DAMPER_CAPACITY, OFMESSAGE_DAMPER_TIMEOUT, prime1, prime2, routingEngine, topology
controller
Constructor and Description |
---|
Forwarding() |
Modifier and Type | Method and Description |
---|---|
protected void |
doDropFlow(IOFSwitch sw,
org.openflow.protocol.interfaces.OFPacketIn pi,
IRoutingDecision decision,
MessageContext cntx)
Creates a
OFPacketOut with packetin that is dropped. |
protected void |
doFlood(IOFSwitch sw,
org.openflow.protocol.interfaces.OFPacketIn pi,
MessageContext cntx)
Creates a OFPacketOut with packetin that is flooded on all ports
unless the port is blocked, in which case the packet will be dropped.
|
protected void |
doForwardFlow(IOFSwitch sw,
org.openflow.protocol.interfaces.OFPacketIn pi,
MessageContext cntx,
boolean requestFlowRemovedNotifn)
Creates a OFPacketOut with packetin that is forwarded.
|
OFModel[] |
getModels()
returns the array of all
OFModel objects associated with this module. |
void |
initialize()
Initializes this module.
|
boolean |
processPacketInMessage(Connection conn,
org.openflow.protocol.interfaces.OFPacketIn pi,
IRoutingDecision decision,
MessageContext cntx)
Calls an appropriate method to process packetin according to the routing decision.
|
blockHost, deviceAdded, deviceIPV4AddrChanged, deviceMoved, deviceRemoved, deviceVlanChanged, getInputPort, handleDisconnect, handleHandshakedEvent, handleMessage, isInBroadcastCache, isInSwitchBroadcastCache, packetOutMultiPort, packetOutMultiPort, packetOutMultiPort, pushPacket, pushPacket, pushRoute, wildcard
getController, getModule, init, processDisconnect, processHandshakeFinished, processMessage, registerFilter, registerModule
OFProtocol protocol
public void initialize()
initialize
in class ForwardingBase
public boolean processPacketInMessage(Connection conn, org.openflow.protocol.interfaces.OFPacketIn pi, IRoutingDecision decision, MessageContext cntx)
processPacketInMessage
in class ForwardingBase
conn
- the connection that the packet came in frompi
- the packet that came indecision
- any decision made by a policy enginecntx
- the MessageContext
protected void doDropFlow(IOFSwitch sw, org.openflow.protocol.interfaces.OFPacketIn pi, IRoutingDecision decision, MessageContext cntx)
OFPacketOut
with packetin that is dropped.sw
- the switch that receives packetinpi
- packetindecision
- the routing decisioncntx
- the MessageContext
protected void doForwardFlow(IOFSwitch sw, org.openflow.protocol.interfaces.OFPacketIn pi, MessageContext cntx, boolean requestFlowRemovedNotifn)
sw
- the switch that receives packetinpi
- packetincntx
- the MessageContext
requestFlowRemovedNotifn
- true when the switch would send a flow mod removal notification when the flow mod expiresprotected void doFlood(IOFSwitch sw, org.openflow.protocol.interfaces.OFPacketIn pi, MessageContext cntx)
sw
- the switch that receives packetinpi
- packetincntx
- the MessageContext