Update OF header lenght
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / serialization / factories / TableModInputMessageFactory.java
index dac909e6042f3874075d6e5834973f5507fa7762..1f5e38a239a52d40f0f917c766c1366101ba431b 100644 (file)
@@ -29,7 +29,7 @@ public class TableModInputMessageFactory implements OFSerializer<TableModInput>
     public void serialize(final TableModInput message, final ByteBuf outBuffer) {
         ByteBufUtils.writeOFHeader(MESSAGE_TYPE, message, outBuffer, EncodeConstants.EMPTY_LENGTH);
         outBuffer.writeByte(message.getTableId().getValue().byteValue());
-        ByteBufUtils.padBuffer(PADDING_IN_TABLE_MOD_MESSAGE, outBuffer);
+        outBuffer.writeZero(PADDING_IN_TABLE_MOD_MESSAGE);
         outBuffer.writeInt(createConfigBitmask(message.getConfig()));
         ByteBufUtils.updateOFHeaderLength(outBuffer);
     }