Skip to content
Snippets Groups Projects
Commit d9ace248 authored by Andrew Ferguson's avatar Andrew Ferguson
Browse files

bug fixes to OF vendor extensions

parent 3c226d14
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ public class OFQueueDeleteVendorData extends OFQueueVendorData {
protected static Instantiable<OFVendorData> instantiable =
new Instantiable<OFVendorData>() {
public OFVendorData instantiate() {
return new OFQueueModifyVendorData();
return new OFQueueDeleteVendorData();
}
};
......@@ -45,4 +45,8 @@ public class OFQueueDeleteVendorData extends OFQueueVendorData {
* The data type value for a queue delete request
*/
public static final int OFP_EXT_QUEUE_DELETE = 1;
public OFQueueDeleteVendorData() {
super(OFP_EXT_QUEUE_DELETE);
}
}
......@@ -45,4 +45,8 @@ public class OFQueueModifyVendorData extends OFQueueVendorData {
* The data type value for a queue modify request
*/
public static final int OFP_EXT_QUEUE_MODIFY = 0;
public OFQueueModifyVendorData() {
super(OFP_EXT_QUEUE_MODIFY);
}
}
......@@ -28,11 +28,15 @@ import org.openflow.protocol.OFPacketQueue;
* @author Andrew Ferguson (adf@cs.brown.edu)
*/
public class OFQueueVendorData extends OFOpenFlowVendorData {
public static int MINIMUM_LENGTH = 24;
public static int MINIMUM_LENGTH = 8;
protected short portNumber;
protected List<OFPacketQueue> queues = new ArrayList<OFPacketQueue>();
public OFQueueVendorData(int dataType) {
super(dataType);
}
/**
* @return the portNumber
*/
......@@ -73,7 +77,7 @@ public class OFQueueVendorData extends OFOpenFlowVendorData {
queuesLength += queue.getLength();
}
return MINIMUM_LENGTH + queuesLength;
return super.getLength() + MINIMUM_LENGTH + queuesLength;
}
/**
......
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