public class Dhcp extends Object implements Protocol
Dhcp.Builder
(mutable).
There are no OpenFlow match fields that reference this protocol.
Modifier and Type | Class and Description |
---|---|
static class |
Dhcp.Builder
Builder (mutable) used to create new protocol instances.
|
static class |
Dhcp.Flag
Flags (bitmask enumeration).
|
static class |
Dhcp.OpCode
Operation codes.
|
Modifier and Type | Method and Description |
---|---|
String |
bootFileName()
Returns the boot file name.
|
IpAddress |
clientAddr()
Returns the client IP address.
|
MacAddress |
clientHwAddr()
Returns the client layer-2 hardware address.
|
Dhcp.Flag |
flag()
Returns the
Dhcp.Flag.BROADCAST or Dhcp.Flag.UNICAST type. |
IpAddress |
gatewayAddr()
Returns the gateway IP address.
|
int |
hopCount()
Returns the hop count.
|
HardwareType |
hwType()
Returns the hardware type.
|
ProtocolId |
id()
Returns the protocol ID.
|
DhcpOption.MessageType |
msgType()
Returns the
DhcpOption.MessageType specified in the
DhcpOption.Code.MSG_TYPE option. |
int |
numSecs()
Returns the number of seconds elapsed since a client begain an attempt
to acquire or renew a lease.
|
Dhcp.OpCode |
opCode()
Returns the operation code.
|
EnumMap<DhcpOption.Code,DhcpOption> |
options()
Returns the options in the form of a map to allow access based on
DhcpOption . |
IpAddress |
serverAddr()
Returns the server IP address.
|
String |
serverHostName()
Returns the server host name (nickname).
|
String |
toDebugString()
Returns the protocol debug string.
|
String |
toString() |
long |
transId()
Returns the transaction ID which is 32-bit identification field
generated by the client to allow it to match up requests with replies.
|
IpAddress |
yourAddr()
Returns "Your" IP address which is the IP address that the server
is assigning to the client.
|
public ProtocolId id()
Protocol
public Dhcp.OpCode opCode()
public HardwareType hwType()
public int hopCount()
public long transId()
public int numSecs()
public Dhcp.Flag flag()
Dhcp.Flag.BROADCAST
or Dhcp.Flag.UNICAST
type.public IpAddress clientAddr()
public IpAddress yourAddr()
public IpAddress serverAddr()
public IpAddress gatewayAddr()
public MacAddress clientHwAddr()
public String serverHostName()
public String bootFileName()
public DhcpOption.MessageType msgType()
DhcpOption.MessageType
specified in the
DhcpOption.Code.MSG_TYPE
option.public EnumMap<DhcpOption.Code,DhcpOption> options()
DhcpOption
.public String toDebugString()
Protocol
toDebugString
in interface Protocol
Copyright © 2015. All Rights Reserved.