Modifier and Type | Field and Description |
---|---|
private MessageContext |
OFController.QP.context |
Modifier and Type | Method and Description |
---|---|
V |
MessageContextStore.get(MessageContext bc,
java.lang.String key)
Deprecated.
|
abstract boolean |
OFController.handleGeneric(Connection conn,
MessageContext context,
org.openflow.protocol.OFMessage m)
handle the other messages.
|
protected abstract boolean |
OFModule.handleHandshakedEvent(Connection conn,
MessageContext context)
An abstract method that all subclasses should implement.
|
protected abstract boolean |
OFModule.handleMessage(Connection conn,
MessageContext context,
org.openflow.protocol.OFMessage msg,
java.util.List<org.openflow.protocol.OFMessage> outgoing)
Handle incoming messages that pass the test of filters.
|
abstract boolean |
OFController.handlePacketIn(Connection conn,
MessageContext context,
org.openflow.protocol.OFMessage m)
handle Packet-in Message.
|
boolean |
OFModule.processHandshakeFinished(Connection conn,
MessageContext context)
This method is called after FEATURE-REQUEST and FEATUER-REPLY is correctly exchanged.
|
boolean |
OFModule.processMessage(Connection conn,
MessageContext context,
org.openflow.protocol.OFMessage msg,
java.util.List<org.openflow.protocol.OFMessage> outgoing)
Handle incoming messages and return the processing result.
|
void |
MessageContextStore.put(MessageContext bc,
java.lang.String key,
V value)
Deprecated.
|
void |
MessageContextStore.remove(MessageContext bc,
java.lang.String key)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
OFMDeviceManager.handleHandshakedEvent(Connection conn,
MessageContext context) |
protected boolean |
OFMDefaultEntityClassifier.handleHandshakedEvent(Connection conn,
MessageContext context) |
protected boolean |
OFMDeviceManager.handleMessage(Connection conn,
MessageContext context,
org.openflow.protocol.OFMessage msg,
java.util.List<org.openflow.protocol.OFMessage> outgoing) |
protected boolean |
OFMDefaultEntityClassifier.handleMessage(Connection conn,
MessageContext context,
org.openflow.protocol.OFMessage msg,
java.util.List<org.openflow.protocol.OFMessage> outgoing) |
private boolean |
OFMDeviceManager.processPacketInMessage(IOFSwitch sw,
org.openflow.protocol.interfaces.OFPacketIn pi,
MessageContext cntx) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
OFMFirewall.handleHandshakedEvent(Connection conn,
MessageContext context) |
protected boolean |
OFMFirewall.handleMessage(Connection conn,
MessageContext context,
org.openflow.protocol.OFMessage msg,
java.util.List<org.openflow.protocol.OFMessage> outgoing) |
protected RuleWildcardsPair |
OFMFirewall.matchWithRule(IOFSwitch sw,
org.openflow.protocol.interfaces.OFPacketIn pi,
MessageContext cntx)
Iterates over the firewall rules and tries to match them with the
incoming packet (flow).
|
private boolean |
OFMFirewall.processPacketInMessage(IOFSwitch sw,
org.openflow.protocol.interfaces.OFPacketIn pi,
IRoutingDecision decision,
MessageContext cntx)
Checks the incoming packet with the firewall policy and create
a decision to handle the packet.
|
Modifier and Type | Field and Description |
---|---|
MessageContext |
OFMatchReconcile.cntx |
Modifier and Type | Method and Description |
---|---|
boolean |
IFlowCacheService.addFlow(MessageContext cntx,
OFMatchWithSwDpid ofm,
java.lang.Long cookie,
SwitchPort swPort,
short priority,
byte action)
Add a flow to the flow-cache - called when a flow-mod is about to be
written to a set of switches.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Forwarding.doDropFlow(IOFSwitch sw,
org.openflow.protocol.interfaces.OFPacketIn pi,
IRoutingDecision decision,
MessageContext cntx)
Creates a
OFPacketOut with packetin that is dropped. |
protected void |
Forwarding.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 |
Forwarding.doForwardFlow(IOFSwitch sw,
org.openflow.protocol.interfaces.OFPacketIn pi,
MessageContext cntx,
boolean requestFlowRemovedNotifn)
Creates a OFPacketOut with packetin that is forwarded.
|
protected boolean |
ForwardingBase.handleHandshakedEvent(Connection sw,
MessageContext context) |
protected boolean |
ForwardingBase.handleMessage(Connection conn,
MessageContext cntx,
org.openflow.protocol.OFMessage msg,
java.util.List<org.openflow.protocol.OFMessage> outgoing)
Initializes this module.
|
protected boolean |
ForwardingBase.isInBroadcastCache(Connection conn,
org.openflow.protocol.interfaces.OFPacketIn pi,
MessageContext cntx)
Updates the broadcast cache of the switch.
|
protected boolean |
ForwardingBase.isInSwitchBroadcastCache(Connection conn,
org.openflow.protocol.interfaces.OFPacketIn pi,
MessageContext cntx)
Updates the broadcast cache of the switch.
|
void |
ForwardingBase.packetOutMultiPort(byte[] packetData,
Connection conn,
short inPort,
java.util.Set<java.lang.Integer> outPorts,
MessageContext cntx)
Writes packet-out message to switch with output actions to one or more
output ports with inPort/outPorts passed in.
|
void |
ForwardingBase.packetOutMultiPort(IPacket packet,
Connection conn,
short inPort,
java.util.Set<java.lang.Integer> outPorts,
MessageContext cntx)
Accepts an IPacket instead of raw packet data.
|
void |
ForwardingBase.packetOutMultiPort(org.openflow.protocol.interfaces.OFPacketIn pi,
Connection conn,
short inPort,
java.util.Set<java.lang.Integer> outPorts,
MessageContext cntx)
Accepts a PacketIn instead of raw packet data.
|
abstract boolean |
ForwardingBase.processPacketInMessage(Connection conn,
org.openflow.protocol.interfaces.OFPacketIn pi,
IRoutingDecision decision,
MessageContext cntx)
All subclasses must define this function if they want any specific
forwarding action.
|
boolean |
Forwarding.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.
|
void |
ForwardingBase.pushPacket(Connection conn,
IPacket packet,
IOFSwitch sw,
int bufferId,
short inPort,
short outPort,
MessageContext cntx)
Pushes a packet-out to a switch.
|
protected void |
ForwardingBase.pushPacket(Connection conn,
org.openflow.protocol.interfaces.OFMatch match,
org.openflow.protocol.interfaces.OFPacketIn pi,
int outport,
MessageContext cntx)
Pushes a packet-out to a switch.
|
boolean |
ForwardingBase.pushRoute(Connection conn,
Route route,
org.openflow.protocol.interfaces.OFMatch match,
java.lang.Integer wildcard_hints,
org.openflow.protocol.interfaces.OFPacketIn pi,
long pinSwitch,
long cookie,
MessageContext cntx,
boolean reqeustFlowRemovedNotifn,
boolean doFlush,
org.openflow.protocol.interfaces.OFFlowModCommand flowModCommand)
Pushes routes from back to front.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
Hub.handleHandshakedEvent(Connection conn,
MessageContext context) |
protected boolean |
Hub.handleMessage(Connection conn,
MessageContext context,
org.openflow.protocol.OFMessage msg,
java.util.List<org.openflow.protocol.OFMessage> outgoing) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
OFMLearningMac13.handleHandshakedEvent(Connection sw,
MessageContext context)
As this module does not process handshake event,
it just returns true.
|
protected boolean |
OFMLearningMac10.handleHandshakedEvent(Connection sw,
MessageContext context)
As this module does not process handshake event,
it just returns true.
|
protected boolean |
OFMLearningMac.handleHandshakedEvent(Connection sw,
MessageContext context)
As this module does not process handshake event,
it just returns true.
|
boolean |
OFMLearningMac13.handleMessage(Connection conn,
MessageContext context,
org.openflow.protocol.OFMessage msg,
java.util.List<org.openflow.protocol.OFMessage> outgoing)
this method is a callback called by controller to request this module to
handle an incoming message.
|
boolean |
OFMLearningMac10.handleMessage(Connection conn,
MessageContext context,
org.openflow.protocol.OFMessage msg,
java.util.List<org.openflow.protocol.OFMessage> outgoing)
this method is a callback called by controller to request this module to
handle an incoming message.
|
boolean |
OFMLearningMac.handleMessage(Connection conn,
MessageContext context,
org.openflow.protocol.OFMessage msg,
java.util.List<org.openflow.protocol.OFMessage> outgoing)
this method is a callback called by controller to request this module to
handle an incoming message.
|
boolean |
OFMLearningMac13.processPacketInMessage(Connection conn,
MessageContext context,
org.openflow.protocol.OFMessage msg,
java.util.List<org.openflow.protocol.OFMessage> out)
Processes a OFPacketIn message.
|
private boolean |
OFMLearningMac10.processPacketInMessage(Connection conn,
MessageContext context,
org.openflow.protocol.OFMessage msg,
java.util.List<org.openflow.protocol.OFMessage> out)
Processes a OFPacketIn message.
|
private boolean |
OFMLearningMac.processPacketInMessage(Connection conn,
MessageContext context,
org.openflow.protocol.OFMessage msg,
java.util.List<org.openflow.protocol.OFMessage> out)
Processes a OFPacketIn message.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
OFMLinkDiscovery.handleHandshakedEvent(Connection conn,
MessageContext context) |
protected boolean |
OFMLinkDiscovery.handleMessage(Connection conn,
MessageContext context,
org.openflow.protocol.OFMessage msg,
java.util.List<org.openflow.protocol.OFMessage> outgoing) |
private boolean |
OFMLinkDiscovery.handlePacketIn(IOFSwitch sw,
MessageContext context,
org.openflow.protocol.interfaces.OFPacketIn pi,
java.util.List<org.openflow.protocol.OFMessage> outgoing)
This method handles a PACKET_IN message as follows:
First, decapsulate the Ethernet part of the PACKET_IN payload.
|
private boolean |
OFMLinkDiscovery.handlePortStatus(IOFSwitch sw,
MessageContext context,
org.openflow.protocol.interfaces.OFPortStatus ps,
java.util.List<org.openflow.protocol.OFMessage> outgoing)
Handle PORT_STATUS message.
|
Modifier and Type | Method and Description |
---|---|
void |
RoutingDecision.addToContext(MessageContext cntx) |
void |
IRoutingDecision.addToContext(MessageContext cntx) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
OFMStateManager.handleHandshakedEvent(Connection conn,
MessageContext context)
Does nothing except for returning true.
|
protected boolean |
OFMStateManager.handleMessage(Connection conn,
MessageContext context,
org.openflow.protocol.OFMessage msg,
java.util.List<org.openflow.protocol.OFMessage> outgoing)
Does nothing except for returning true.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
OFMStorageManager.handleHandshakedEvent(Connection conn,
MessageContext context) |
protected boolean |
OFMStorageManager.handleMessage(Connection conn,
MessageContext context,
org.openflow.protocol.OFMessage msg,
java.util.List<org.openflow.protocol.OFMessage> outgoing) |
Modifier and Type | Method and Description |
---|---|
boolean |
OFMTopologyManager.handleHandshakedEvent(Connection sw,
MessageContext context) |
boolean |
OFMTopologyManager.handleMessage(Connection conn,
MessageContext context,
org.openflow.protocol.OFMessage msg,
java.util.List<org.openflow.protocol.OFMessage> outgoing)
This is starting point of OFMTopologyManager
|
private boolean |
OFMTopologyManager.processPacketInMessage(IOFSwitch sw,
org.openflow.protocol.interfaces.OFPacketIn pi,
MessageContext context,
java.util.List<org.openflow.protocol.OFMessage> outgoing)
From the OFPacketIn message received, this method performs following procedures.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
OFMUserInterface.handleHandshakedEvent(Connection conn,
MessageContext context) |
protected boolean |
OFMUserInterface.handleMessage(Connection conn,
MessageContext context,
org.openflow.protocol.OFMessage msg,
java.util.List<org.openflow.protocol.OFMessage> outgoing) |
Modifier and Type | Method and Description |
---|---|
boolean |
OFProtocol.process(Connection conn,
MessageContext context,
org.openflow.protocol.OFMessage m)
Callback called by underlying platform when a new OFMessage is received for a connection
|