diff --git a/src/main/java/org/openflow/vendor/openflow/OFQueueDeleteVendorData.java b/src/main/java/org/openflow/vendor/openflow/OFQueueDeleteVendorData.java index 12bce4d7a768efa11b14bc5ed0680b4e229b6039..4fc52bacb337733d19647ab89f3ee04f553ef018 100644 --- a/src/main/java/org/openflow/vendor/openflow/OFQueueDeleteVendorData.java +++ b/src/main/java/org/openflow/vendor/openflow/OFQueueDeleteVendorData.java @@ -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); + } } diff --git a/src/main/java/org/openflow/vendor/openflow/OFQueueModifyVendorData.java b/src/main/java/org/openflow/vendor/openflow/OFQueueModifyVendorData.java index 827c7ecc224e088325aa7f9e3938fd83e2bd6ebe..0d2f31b524c22f2e1152735eb5db26d8ae210914 100644 --- a/src/main/java/org/openflow/vendor/openflow/OFQueueModifyVendorData.java +++ b/src/main/java/org/openflow/vendor/openflow/OFQueueModifyVendorData.java @@ -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); + } } diff --git a/src/main/java/org/openflow/vendor/openflow/OFQueueVendorData.java b/src/main/java/org/openflow/vendor/openflow/OFQueueVendorData.java index e5f1618d2f3136efeb3a63275c860448aa63ce0d..eeae9aace6436f42de2c26151aba1f125e26d83b 100644 --- a/src/main/java/org/openflow/vendor/openflow/OFQueueVendorData.java +++ b/src/main/java/org/openflow/vendor/openflow/OFQueueVendorData.java @@ -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; } /**