public class DhcpOption extends BasePacket
| Modifier and Type | Field and Description | 
|---|---|
protected byte | 
code  | 
protected byte[] | 
data  | 
static int | 
DEFAULT_LEN  | 
protected byte | 
length  | 
static int | 
OPT_CODE_LEN  | 
protected static int | 
UNSIGNED_BYTE_MASK  | 
parent, payload| Constructor and Description | 
|---|
DhcpOption()  | 
| Modifier and Type | Method and Description | 
|---|---|
static Deserializer<DhcpOption> | 
deserializer()
Deserializer function for DHCP option. 
 | 
boolean | 
equals(Object obj)  | 
byte | 
getCode()  | 
byte[] | 
getData()  | 
byte | 
getLength()  | 
int | 
hashCode()  | 
byte[] | 
serialize()
Sets all payloads parent packet if applicable, then serializes this
 packet and all payloads. 
 | 
DhcpOption | 
setCode(byte code)  | 
DhcpOption | 
setData(byte[] data)  | 
DhcpOption | 
setLength(byte length)  | 
String | 
toString()  | 
clone, getParent, getPayload, resetChecksum, setParent, setPayloadpublic static final int OPT_CODE_LEN
public static final int DEFAULT_LEN
protected static final int UNSIGNED_BYTE_MASK
protected byte code
protected byte length
protected byte[] data
public byte[] serialize()
IPacketpublic static Deserializer<DhcpOption> deserializer()
public byte getCode()
public DhcpOption setCode(byte code)
code - the code to setpublic byte getLength()
public DhcpOption setLength(byte length)
length - the length to setpublic byte[] getData()
public DhcpOption setData(byte[] data)
data - the data to setpublic int hashCode()
hashCode in class BasePacketpublic boolean equals(Object obj)
equals in class BasePacket