public class OfPacketReader extends PacketReader
PacketReader
to include the
OpenFlow datatypes from com.hp.of.lib.dt
.Constructor and Description |
---|
OfPacketReader(byte[] bytes)
Constructs a packet reader backed by the specified byte buffer.
|
OfPacketReader(ByteBuffer bb)
Constructs a packet reader backed by the specified byte buffer.
|
Modifier and Type | Method and Description |
---|---|
BufferId |
readBufferId()
Reads a (u32) buffer id from the buffer.
|
DataPathId |
readDataPathId()
Reads a (u32) datapath id from the buffer.
|
GroupId |
readGroupId()
Reads a (u32) group id from the buffer.
|
MeterId |
readMeterId()
Reads a (u32) meter id from the buffer.
|
QueueId |
readQueueId()
Reads a (u32) queue id from the buffer.
|
TableId |
readTableId()
Reads a (u8) table id from the buffer.
|
VId |
readVId()
Reads a virtual identifier (u16) from the buffer.
|
int |
startIndex()
Returns the annotated start index.
|
void |
startIndex(int index)
Annotates this packet reader with the start index.
|
int |
targetIndex()
Returns the annotated target index.
|
void |
targetIndex(int index)
Annotates this packet reader with the target index.
|
array, limit, odometer, peek, peekU16, peekU16, peekU24, peekU24, peekU8, peekU8, readableBytes, readBigPortNumber, readByte, readBytes, readEthernetType, readIcmpv4Type, readIcmpv6Type, readInt, readIpProtocol, readIPv4Address, readIPv6Address, readLong, readMacAddress, readPortNumber, readString, readU16, readU24, readU32, readU8, readVlanId, resetIndex, resetOdometer, ri, ri, skip, toString
public OfPacketReader(ByteBuffer bb)
bb
- the byte buffer to read frompublic OfPacketReader(byte[] bytes)
bytes
- the bytes to wrappublic void startIndex(int index)
index
- the start indexpublic int startIndex()
public void targetIndex(int index)
index
- the target indexpublic int targetIndex()
public GroupId readGroupId()
public BufferId readBufferId()
public QueueId readQueueId()
public MeterId readMeterId()
public TableId readTableId()
public VId readVId()
public DataPathId readDataPathId()
Copyright © 2015. All Rights Reserved.