net.floodlightcontroller.packet
Class DHCPOption

java.lang.Object
  extended by 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
           
 
Constructor Summary
DHCPOption()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 byte getCode()
           
 byte[] getData()
           
 byte getLength()
           
 int hashCode()
           
 DHCPOption setCode(byte code)
           
 DHCPOption setData(byte[] data)
           
 DHCPOption setLength(byte length)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

code

protected byte code

length

protected byte length

data

protected byte[] data
Constructor Detail

DHCPOption

public DHCPOption()
Method Detail

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