public class DhcpMessage extends Object
Modifier and Type | Field and Description |
---|---|
static int |
FLAG_BROADCAST
Flag value: request broadcast answer.
|
static byte |
OP_BOOTREPLY
Operation constant: boot reply (server to client).
|
static byte |
OP_BOOTREQUEST
Operation constant: boot request (client to server).
|
Constructor and Description |
---|
DhcpMessage()
Create a default dhcp message.
|
DhcpMessage(MessageType messageType,
byte op,
HardwareAddress hardwareAddress,
short hops,
int transactionId,
int seconds,
short flags,
InetAddress currentClientAddress,
InetAddress assignedClientAddress,
InetAddress nextServerAddress,
InetAddress relayAgentAddress,
String serverHostname,
String bootFileName,
OptionsField options)
Create a DHCP message based on the supplied values.
|
public static final int FLAG_BROADCAST
public static final byte OP_BOOTREQUEST
op
,
Constant Field Valuespublic static final byte OP_BOOTREPLY
op
,
Constant Field Valuespublic DhcpMessage()
public DhcpMessage(MessageType messageType, byte op, HardwareAddress hardwareAddress, short hops, int transactionId, int seconds, short flags, InetAddress currentClientAddress, InetAddress assignedClientAddress, InetAddress nextServerAddress, InetAddress relayAgentAddress, String serverHostname, String bootFileName, OptionsField options)
messageType
- op
- hardwareAddress
- hops
- transactionId
- seconds
- flags
- currentClientAddress
- assignedClientAddress
- nextServerAddress
- relayAgentAddress
- serverHostname
- bootFileName
- options
- public InetAddress getAssignedClientAddress()
public String getBootFileName()
public InetAddress getCurrentClientAddress()
public short getFlags()
public short getHopCount()
public MessageType getMessageType()
public InetAddress getNextServerAddress()
public OptionsField getOptions()
public InetAddress getRelayAgentAddress()
public int getSeconds()
public String getServerHostname()
public int getTransactionId()
public void setAssignedClientAddress(InetAddress assignedClientAddress)
public void setBootFileName(String bootFileName)
public void setCurrentClientAddress(InetAddress currentClientAddress)
public void setFlags(short flags)
public void setHopCount(short hopCount)
public void setMessageType(MessageType messageType)
public void setNextServerAddress(InetAddress nextServerAddress)
public void setOptions(OptionsField options)
public void setRelayAgentAddress(InetAddress relayAgentAddress)
public void setSeconds(int seconds)
public void setServerHostname(String serverHostname)
public void setTransactionId(int transactionId)
public byte getOp()
public void setOp(byte op)
public HardwareAddress getHardwareAddress()
public void setHardwareAddress(HardwareAddress hardwareAddress)
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.