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

Merge pull request #2 from AndreMantas/AndreMantas-writePacketOutForPacketIn

Andre mantas write packet out for packet in
parents 123aa435 d26cf996
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.
*/
private 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