public class BSNPROBE extends BasePacket
Modifier and Type | Field and Description |
---|---|
protected long |
controllerId |
protected byte[] |
dstMac |
protected int |
sequenceId |
protected byte[] |
srcMac |
protected int |
srcPortNo |
protected long |
srcSwDpid |
parent, payload
Constructor and Description |
---|
BSNPROBE() |
Modifier and Type | Method and Description |
---|---|
IPacket |
deserialize(byte[] data,
int offset,
int length)
Deserializes this packet layer and all possible payloads
|
boolean |
equals(java.lang.Object obj) |
long |
getControllerId() |
byte[] |
getDstMac() |
int |
getSequenceId() |
byte[] |
getSrcMac() |
int |
getSrcPortNo() |
long |
getSrcSwDpid() |
int |
hashCode() |
byte[] |
serialize()
Sets all payloads parent packet if applicable, then serializes this
packet and all payloads
|
BSNPROBE |
setControllerId(long controllerId) |
BSNPROBE |
setDstMac(byte[] dstMac) |
BSNPROBE |
setSequenceId(int sequenceId) |
BSNPROBE |
setSrcMac(byte[] srcMac) |
BSNPROBE |
setSrcPortNo(int srcPortNo) |
BSNPROBE |
setSrcSwDpid(long srcSwDpid) |
java.lang.String |
toString() |
clone, getParent, getPayload, resetChecksum, setParent, setPayload
protected long controllerId
protected int sequenceId
protected byte[] srcMac
protected byte[] dstMac
protected long srcSwDpid
protected int srcPortNo
public long getControllerId()
public BSNPROBE setControllerId(long controllerId)
public int getSequenceId()
public BSNPROBE setSequenceId(int sequenceId)
public byte[] getSrcMac()
public BSNPROBE setSrcMac(byte[] srcMac)
public byte[] getDstMac()
public BSNPROBE setDstMac(byte[] dstMac)
public long getSrcSwDpid()
public BSNPROBE setSrcSwDpid(long srcSwDpid)
public int getSrcPortNo()
public BSNPROBE setSrcPortNo(int srcPortNo)
public byte[] serialize()
IPacket
public IPacket deserialize(byte[] data, int offset, int length)
IPacket
offset
- offset to start deserializing fromlength
- length of the data to deserializepublic int hashCode()
hashCode
in class BasePacket
public boolean equals(java.lang.Object obj)
equals
in class BasePacket
public java.lang.String toString()
toString
in class java.lang.Object