Skip to content
Snippets Groups Projects
Commit d26cf996 authored by AndreMantas's avatar AndreMantas
Browse files

Update OFMessageUtils.java

Added required imports and static declaration.
parent da1c88d8
No related branches found
No related tags found
No related merge requests found
package net.floodlightcontroller.util;
import java.util.ArrayList;
import java.util.List;
import net.floodlightcontroller.core.IOFSwitch;
import org.projectfloodlight.openflow.protocol.OFMessage;
import org.projectfloodlight.openflow.protocol.OFPacketIn;
import org.projectfloodlight.openflow.protocol.OFPacketOut;
import org.projectfloodlight.openflow.protocol.OFVersion;
import org.projectfloodlight.openflow.protocol.action.OFAction;
import org.projectfloodlight.openflow.protocol.match.MatchField;
import org.projectfloodlight.openflow.types.OFBufferId;
import org.projectfloodlight.openflow.types.OFPort;
/**
* Tools to help work with OFMessages.
......@@ -48,7 +61,7 @@ public class OFMessageUtils {
* @param egressPort
* The switchport to output the PacketOut.
*/
public void writePacketOutForPacketIn(IOFSwitch sw,
public static void writePacketOutForPacketIn(IOFSwitch sw,
OFPacketIn packetInMessage, OFPort egressPort) {
OFPacketOut.Builder pob = sw.getOFFactory().buildPacketOut();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment