net.floodlightcontroller.packet
Class DHCPOption
java.lang.Object
net.floodlightcontroller.packet.DHCPOption
public class DHCPOption
- extends java.lang.Object
- Author:
- David Erickson (daviderickson@cs.stanford.edu)
Field Summary |
protected byte |
code
|
protected byte[] |
data
|
protected byte |
length
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
code
protected byte code
length
protected byte length
data
protected byte[] data
DHCPOption
public DHCPOption()
getCode
public byte getCode()
- Returns:
- the code
setCode
public DHCPOption setCode(byte code)
- Parameters:
code
- the code to set
getLength
public byte getLength()
- Returns:
- the length
setLength
public DHCPOption setLength(byte length)
- Parameters:
length
- the length to set
getData
public byte[] getData()
- Returns:
- the data
setData
public DHCPOption setData(byte[] data)
- Parameters:
data
- the data to set
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object