Skip navigation links
A B C D E F G H I L M N O P R S T U 

A

addr2Cidr(InetAddress) - Static method in class org.dhcp4java.InetCidr
Returns an array of all cidr combinations with the provided ip address.
agentOptionsToMap(byte[]) - Static method in class org.dhcp4java.DHCPOption
Converts DHO_DHCP_AGENT_OPTIONS (82) option type to a LinkedMap.
agentOptionsToString(byte[]) - Static method in class org.dhcp4java.DHCPOption
Converts DHO_DHCP_AGENT_OPTIONS (82) option type to a printable string
agentOptionToRaw(Map<Byte, String>) - Static method in class org.dhcp4java.DHCPOption
Converts Map<Byte,String> to DHO_DHCP_AGENT_OPTIONS (82) option.
append(StringBuilder) - Method in class org.dhcp4java.DHCPOption
Appends to this string builder a detailed string representation of the DHCP datagram.
appendHostAddress(StringBuilder, InetAddress) - Static method in class org.dhcp4java.Util
Even faster version than Util.getHostAddress(java.net.InetAddress) when the address is not the only piece of information put in the string.
applyOption(DHCPPacket) - Method in class org.dhcp4java.DHCPOption
Get the option value based on the context, i.e. the client's request.

B

BOOTP_REPLY_PORT - Static variable in class org.dhcp4java.DHCPConstants
 
BOOTP_REQUEST_PORT - Static variable in class org.dhcp4java.DHCPConstants
 
BOOTREPLY - Static variable in class org.dhcp4java.DHCPConstants
 
BOOTREQUEST - Static variable in class org.dhcp4java.DHCPConstants
DHCP BOOTP CODES
byte2Bytes(byte) - Static method in class org.dhcp4java.DHCPOption
 

C

checkNoOverlap(List<InetCidr>) - Static method in class org.dhcp4java.InetCidr
Checks whether the list does not contain any overlapping cidr(s).
clone() - Method in class org.dhcp4java.DHCPPacket
Returns a copy of this DHCPPacket.
compareTo(InetCidr) - Method in class org.dhcp4java.InetCidr
Compare two InetCidr by its addr as main criterion, mask as second.
containsOption(byte) - Method in class org.dhcp4java.DHCPPacket
Tests whether an option code is present in the packet.

D

DHCPACK - Static variable in class org.dhcp4java.DHCPConstants
 
DHCPBadPacketException - Exception in org.dhcp4java
Thrown to indicate that a DHCP datagram is malformed.
DHCPBadPacketException() - Constructor for exception org.dhcp4java.DHCPBadPacketException
Constructs an DHCPBadPacketException with no detail message.
DHCPBadPacketException(String) - Constructor for exception org.dhcp4java.DHCPBadPacketException
Constructs an DHCPBadPacketException with the specified detail message.
DHCPBadPacketException(String, Throwable) - Constructor for exception org.dhcp4java.DHCPBadPacketException
Constructs a new exception with the specified detail message and cause.
DHCPBadPacketException(Throwable) - Constructor for exception org.dhcp4java.DHCPBadPacketException
Constructs a new exception with the specified cause and a detail message of (cause==null ?
DHCPClient - Class in org.dhcp4java.examples
Example of DHCP Client (under construction).
DHCPConstants - Class in org.dhcp4java
Class holding all DHCP constants.
DHCPCoreServer - Class in org.dhcp4java
A simple generic DHCP Server.
DHCPDECLINE - Static variable in class org.dhcp4java.DHCPConstants
 
DHCPDISCOVER - Static variable in class org.dhcp4java.DHCPConstants
DHCP MESSAGE CODES
DHCPFORCERENEW - Static variable in class org.dhcp4java.DHCPConstants
 
DHCPINFORM - Static variable in class org.dhcp4java.DHCPConstants
 
DHCPLEASEACTIVE - Static variable in class org.dhcp4java.DHCPConstants
 
DHCPLEASEQUERY - Static variable in class org.dhcp4java.DHCPConstants
 
DHCPLEASEUNASSIGNED - Static variable in class org.dhcp4java.DHCPConstants
 
DHCPLEASEUNKNOWN - Static variable in class org.dhcp4java.DHCPConstants
 
DHCPNAK - Static variable in class org.dhcp4java.DHCPConstants
 
DHCPOFFER - Static variable in class org.dhcp4java.DHCPConstants
 
DHCPOption - Class in org.dhcp4java
Class for manipulating DHCP options (used internally).
DHCPOption(byte, byte[], boolean) - Constructor for class org.dhcp4java.DHCPOption
Constructor for DHCPOption.
DHCPOption(byte, byte[]) - Constructor for class org.dhcp4java.DHCPOption
Constructor for DHCPOption.
DHCPPacket - Class in org.dhcp4java
The basic class for manipulating DHCP packets.
DHCPPacket() - Constructor for class org.dhcp4java.DHCPPacket
Constructor for the DHCPPacket class.
DHCPRELEASE - Static variable in class org.dhcp4java.DHCPConstants
 
DHCPREQUEST - Static variable in class org.dhcp4java.DHCPConstants
 
DHCPResponseFactory - Class in org.dhcp4java
This class provides some standard factories for DHCP responses.
DHCPServerInitException - Exception in org.dhcp4java
Thrown to indicate there was a problem starting the DHCP Server.
DHCPServerInitException() - Constructor for exception org.dhcp4java.DHCPServerInitException
 
DHCPServerInitException(String) - Constructor for exception org.dhcp4java.DHCPServerInitException
 
DHCPServerInitException(Throwable) - Constructor for exception org.dhcp4java.DHCPServerInitException
 
DHCPServerInitException(String, Throwable) - Constructor for exception org.dhcp4java.DHCPServerInitException
 
DHCPServlet - Class in org.dhcp4java
General Interface for a "DHCP Servlet" Normal use is to override the doXXX() or service() method to provide your own application logic.
DHCPServlet() - Constructor for class org.dhcp4java.DHCPServlet
 
DHCPSniffer - Class in org.dhcp4java.examples
A simple DHCP sniffer.
DHCPSnifferServlet - Class in org.dhcp4java.examples
A simple DHCP sniffer based on DHCP servlets.
DHCPSnifferServlet() - Constructor for class org.dhcp4java.examples.DHCPSnifferServlet
 
DHO_ALL_SUBNETS_LOCAL - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_ARP_CACHE_TIMEOUT - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_ASSOCIATED_IP - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_AUTO_CONFIGURE - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_BOOT_SIZE - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_BOOTFILE - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_BROADCAST_ADDRESS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_CLASSLESS_ROUTE - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_CLIENT_LAST_TRANSACTION_TIME - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_COOKIE_SERVERS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_DEFAULT_IP_TTL - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_DEFAULT_TCP_TTL - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_DHCP_AGENT_OPTIONS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_DHCP_CLIENT_IDENTIFIER - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_DHCP_LEASE_TIME - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_DHCP_MAX_MESSAGE_SIZE - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_DHCP_MESSAGE - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_DHCP_MESSAGE_TYPE - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_DHCP_OPTION_OVERLOAD - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_DHCP_PARAMETER_REQUEST_LIST - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_DHCP_REBINDING_TIME - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_DHCP_RENEWAL_TIME - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_DHCP_REQUESTED_ADDRESS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_DHCP_SERVER_IDENTIFIER - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_DOMAIN_NAME - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_DOMAIN_NAME_SERVERS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_DOMAIN_SEARCH - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_END - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_EXTENSIONS_PATH - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_FINGER_SERVER - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_FONT_SERVERS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_FQDN - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_HOST_NAME - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_IEEE802_3_ENCAPSULATION - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_IMPRESS_SERVERS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_INTERFACE_MTU - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_IP_FORWARDING - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_IRC_SERVER - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_LOG_SERVERS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_LPR_SERVERS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_MASK_SUPPLIER - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_MAX_DGRAM_REASSEMBLY - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_MERIT_DUMP - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_MOBILE_IP_HOME_AGENT - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_NAME_SERVERS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_NAME_SERVICE_SEARCH - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_NDS_CONTEXT - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_NDS_SERVERS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_NDS_TREE_NAME - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_NETBIOS_DD_SERVER - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_NETBIOS_NAME_SERVERS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_NETBIOS_NODE_TYPE - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_NETBIOS_SCOPE - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_NIS_SERVERS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_NISPLUS_DOMAIN - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_NISPLUS_SERVER - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_NNTP_SERVER - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_NON_LOCAL_SOURCE_ROUTING - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_NTP_SERVERS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_NWIP_DOMAIN_NAME - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_NWIP_SUBOPTIONS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_PAD - Static variable in class org.dhcp4java.DHCPConstants
DHCP OPTIONS CODE
DHO_PATH_MTU_AGING_TIMEOUT - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_PATH_MTU_PLATEAU_TABLE - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_PERFORM_MASK_DISCOVERY - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_POLICY_FILTER - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_POP3_SERVER - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_RESOURCE_LOCATION_SERVERS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_ROOT_PATH - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_ROUTER_DISCOVERY - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_ROUTER_SOLICITATION_ADDRESS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_ROUTERS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_SMTP_SERVER - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_STATIC_ROUTES - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_STDA_SERVER - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_STREETTALK_SERVER - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_SUBNET_MASK - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_SUBNET_SELECTION - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_SWAP_SERVER - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_TCP_KEEPALIVE_GARBAGE - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_TCP_KEEPALIVE_INTERVAL - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_TFTP_SERVER - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_TIME_OFFSET - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_TIME_SERVERS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_TRAILER_ENCAPSULATION - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_USER_AUTHENTICATION_PROTOCOL - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_USER_CLASS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_VENDOR_CLASS_IDENTIFIER - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_VENDOR_ENCAPSULATED_OPTIONS - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_WWW_SERVER - Static variable in class org.dhcp4java.DHCPConstants
 
DHO_X_DISPLAY_MANAGER - Static variable in class org.dhcp4java.DHCPConstants
 
dispatch() - Method in class org.dhcp4java.DHCPCoreServer
 
doDecline(DHCPPacket) - Method in class org.dhcp4java.DHCPServlet
Process DECLINE request.
doDiscover(DHCPPacket) - Method in class org.dhcp4java.DHCPServlet
Process DISCOVER request.
doInform(DHCPPacket) - Method in class org.dhcp4java.DHCPServlet
Process INFORM request.
doRelease(DHCPPacket) - Method in class org.dhcp4java.DHCPServlet
Process RELEASE request.
doRequest(DHCPPacket) - Method in class org.dhcp4java.DHCPServlet
Process REQUEST request.

E

equals(Object) - Method in class org.dhcp4java.DHCPOption
returns true if two DHCPOption objects are equal, i.e. have same code and same value.
equals(Object) - Method in class org.dhcp4java.DHCPPacket
Returns true if 2 instances of DHCPPacket represent the same DHCP packet.
equals(Object) - Method in class org.dhcp4java.HardwareAddress
 
equals(Object) - Method in class org.dhcp4java.InetCidr
 

F

fromLong(long) - Static method in class org.dhcp4java.InetCidr
Creates a new InetCidr from its long representation.

G

getAddr() - Method in class org.dhcp4java.InetCidr
 
getAddress() - Method in class org.dhcp4java.DHCPPacket
Returns the IP address of the machine to which this datagram is being sent or from which the datagram was received.
getAddrLong() - Method in class org.dhcp4java.InetCidr
 
getAddrPort() - Method in class org.dhcp4java.DHCPPacket
Syntactic sugar for getAddress/getPort.
getBootNamesMap() - Static method in class org.dhcp4java.DHCPConstants
Returns a map associating a BootCode and the user-readable name.
getChaddr() - Method in class org.dhcp4java.DHCPPacket
Returns the chaddr field (Client hardware address - typically MAC address).
getChaddrAsHex() - Method in class org.dhcp4java.DHCPPacket
Returns the chaddr field (Client hardware address - typically MAC address) as a hex string.
getCiaddr() - Method in class org.dhcp4java.DHCPPacket
Returns the ciaddr field (Client IP Address).
getCiaddrRaw() - Method in class org.dhcp4java.DHCPPacket
Returns the ciaddr field (Client IP Address).
getCode() - Method in class org.dhcp4java.DHCPOption
Return the code field (byte).
getComment() - Method in class org.dhcp4java.DHCPPacket
Returns the comment associated to this packet.
getDefaultSocketAddress(DHCPPacket, byte) - Static method in class org.dhcp4java.DHCPResponseFactory
Calculates the addres/port to which the response must be sent, according to rfc 2131, section 4.1.
getDhcpCodesMap() - Static method in class org.dhcp4java.DHCPConstants
Returns a map associating a DHCP code and the user-readable name.
getDHCPMessageType() - Method in class org.dhcp4java.DHCPPacket
Return the DHCP Option Type.
getDhoName(byte) - Static method in class org.dhcp4java.DHCPConstants
Converts a DHCP code into a user-readable DHCP option name.
getDhoNamesMap() - Static method in class org.dhcp4java.DHCPConstants
Returns a map associating a DHCP option code and the user-readable name.
getDhoNamesReverse(String) - Static method in class org.dhcp4java.DHCPConstants
Converts a DHCP option name into the option code.
getDhoNamesReverseMap() - Static method in class org.dhcp4java.DHCPConstants
Returns a map associating a user-readable DHCP option name and the option code.
getFile() - Method in class org.dhcp4java.DHCPPacket
Returns the file field (Boot File Name) as String.
getFileRaw() - Method in class org.dhcp4java.DHCPPacket
Returns the file field (Boot File Name).
getFlags() - Method in class org.dhcp4java.DHCPPacket
Returns the flags field.
getGiaddr() - Method in class org.dhcp4java.DHCPPacket
Returns the giaddr field (Relay agent IP address).
getGiaddrRaw() - Method in class org.dhcp4java.DHCPPacket
Returns the giaddr field (Relay agent IP address).
getHardwareAddress() - Method in class org.dhcp4java.DHCPPacket
Return the hardware address (@MAC) as an HardwareAddress object.
getHardwareAddress() - Method in class org.dhcp4java.HardwareAddress
 
getHardwareAddressByString(String) - Static method in class org.dhcp4java.HardwareAddress
Parse the MAC address in hex format, split by ':'.
getHardwareAddressHex() - Method in class org.dhcp4java.HardwareAddress
 
getHardwareType() - Method in class org.dhcp4java.HardwareAddress
 
getHlen() - Method in class org.dhcp4java.DHCPPacket
Returns the hlen field (Hardware address length).
getHops() - Method in class org.dhcp4java.DHCPPacket
Returns the hops field.
getHostAddress(InetAddress) - Static method in class org.dhcp4java.Util
Faster version than InetAddress.getHostAddress().
getHtype() - Method in class org.dhcp4java.DHCPPacket
Returns the htype field (Hardware address length).
getHtypesMap() - Static method in class org.dhcp4java.DHCPConstants
Returns a map associating a HType and the user-readable name.
getInetSocketAddress(Properties) - Method in class org.dhcp4java.DHCPCoreServer
Returns the InetSocketAddress for the server (client-side).
getMask() - Method in class org.dhcp4java.InetCidr
 
getOp() - Method in class org.dhcp4java.DHCPPacket
Returns the op field (Message op code).
getOption(byte) - Method in class org.dhcp4java.DHCPPacket
Returns the option as DHCPOption object.
getOptionAsByte(byte) - Method in class org.dhcp4java.DHCPPacket
Returns a DHCP Option as Byte format.
getOptionAsBytes(byte) - Method in class org.dhcp4java.DHCPPacket
Returns a DHCP Option as Byte array format.
getOptionAsInetAddr(byte) - Method in class org.dhcp4java.DHCPPacket
Returns a DHCP Option as InetAddress format.
getOptionAsInetAddrs(byte) - Method in class org.dhcp4java.DHCPPacket
Returns a DHCP Option as InetAddress array format.
getOptionAsInteger(byte) - Method in class org.dhcp4java.DHCPPacket
Returns a DHCP Option as Integer format.
getOptionAsNum(byte) - Method in class org.dhcp4java.DHCPPacket
Wrapper function for getValueAsNum() in DHCPOption.
getOptionAsShort(byte) - Method in class org.dhcp4java.DHCPPacket
Returns a DHCP Option as Short format.
getOptionAsShorts(byte) - Method in class org.dhcp4java.DHCPPacket
Returns a DHCP Option as Short array format.
getOptionAsString(byte) - Method in class org.dhcp4java.DHCPPacket
Returns a DHCP Option as String format.
getOptionFormat(byte) - Static method in class org.dhcp4java.DHCPOption
Returns the type of the option based on the option code.
getOptionRaw(byte) - Method in class org.dhcp4java.DHCPPacket
Returns the option as raw byte[] buffer.
getOptionsArray() - Method in class org.dhcp4java.DHCPPacket
Return an array of all DHCP options.
getOptionsCollection() - Method in class org.dhcp4java.DHCPPacket
Return an ordered list/collection of all options.
getPacket(DatagramPacket) - Static method in class org.dhcp4java.DHCPPacket
Factory for creating DHCPPacket objects by parsing a DatagramPacket object.
getPacket(byte[], int, int, boolean) - Static method in class org.dhcp4java.DHCPPacket
Factory for creating DHCPPacket objects by parsing a byte[] e.g. from a datagram.
getPadding() - Method in class org.dhcp4java.DHCPPacket
Returns the padding portion of the packet.
getPort() - Method in class org.dhcp4java.DHCPPacket
Returns the port number on the remote host to which this datagram is being sent or from which the datagram was received.
getSecs() - Method in class org.dhcp4java.DHCPPacket
Returns the secs field (seconds elapsed).
getServer() - Method in class org.dhcp4java.DHCPServlet
 
getSiaddr() - Method in class org.dhcp4java.DHCPPacket
Returns the siaddr field (IP address of next server).
getSiaddrRaw() - Method in class org.dhcp4java.DHCPPacket
Returns the siaddr field (IP address of next server).
getSname() - Method in class org.dhcp4java.DHCPPacket
Returns the sname field (Optional server host name) as String.
getSnameRaw() - Method in class org.dhcp4java.DHCPPacket
Returns the sname field (Optional server host name).
getSockAddress() - Method in class org.dhcp4java.DHCPCoreServer
 
getValue() - Method in class org.dhcp4java.DHCPOption
 
getValueAsByte() - Method in class org.dhcp4java.DHCPOption
Returns a DHCP Option as Byte format.
getValueAsBytes() - Method in class org.dhcp4java.DHCPOption
Returns a DHCP Option as Byte array format.
getValueAsInetAddr() - Method in class org.dhcp4java.DHCPOption
Returns a DHCP Option as InetAddress format.
getValueAsInetAddrs() - Method in class org.dhcp4java.DHCPOption
Returns a DHCP Option as InetAddress array format.
getValueAsInt() - Method in class org.dhcp4java.DHCPOption
Returns a DHCP Option as Integer format.
getValueAsNum() - Method in class org.dhcp4java.DHCPOption
Returns a DHCP Option as Integer format, but is usable for any numerical type: int, short or byte.
getValueAsShort() - Method in class org.dhcp4java.DHCPOption
Returns a DHCP Option as Short format.
getValueAsShorts() - Method in class org.dhcp4java.DHCPOption
Returns a DHCP Option as Short array format.
getValueAsString() - Method in class org.dhcp4java.DHCPOption
Returns a DHCP Option as String format.
getValueFast() - Method in class org.dhcp4java.DHCPOption
 
getXid() - Method in class org.dhcp4java.DHCPPacket
Returns the xid field (Transaction ID).
getYiaddr() - Method in class org.dhcp4java.DHCPPacket
Returns the yiaddr field ('your' IP address).
getYiaddrRaw() - Method in class org.dhcp4java.DHCPPacket
Returns the yiaddr field ('your' IP address).

H

HardwareAddress - Class in org.dhcp4java
Class is immutable.
HardwareAddress(byte[]) - Constructor for class org.dhcp4java.HardwareAddress
 
HardwareAddress(byte, byte[]) - Constructor for class org.dhcp4java.HardwareAddress
 
HardwareAddress(String) - Constructor for class org.dhcp4java.HardwareAddress
 
HardwareAddress(byte, String) - Constructor for class org.dhcp4java.HardwareAddress
 
hashCode() - Method in class org.dhcp4java.DHCPOption
Returns hashcode.
hashCode() - Method in class org.dhcp4java.DHCPPacket
Returns a hash code value for the object.
hashCode() - Method in class org.dhcp4java.HardwareAddress
 
hashCode() - Method in class org.dhcp4java.InetCidr
 
HTYPE_ETHER - Static variable in class org.dhcp4java.DHCPConstants
DHCP HTYPE CODES
HTYPE_FDDI - Static variable in class org.dhcp4java.DHCPConstants
 
HTYPE_IEEE1394 - Static variable in class org.dhcp4java.DHCPConstants
 
HTYPE_IEEE802 - Static variable in class org.dhcp4java.DHCPConstants
 

I

INADDR_ANY - Static variable in class org.dhcp4java.DHCPConstants
Any address
INADDR_BROADCAST - Static variable in class org.dhcp4java.DHCPConstants
Broadcast Address
inetAddress2Bytes(InetAddress) - Static method in class org.dhcp4java.DHCPOption
 
inetAddress2Int(InetAddress) - Static method in class org.dhcp4java.Util
Converts IPv4 InetAddress to 32 bits int.
inetAddress2Long(InetAddress) - Static method in class org.dhcp4java.Util
Converts IPv4 InetAddress to 32 bits int, packages into a 64 bits long.
inetAddresses2Bytes(InetAddress[]) - Static method in class org.dhcp4java.DHCPOption
 
InetCidr - Class in org.dhcp4java
 
InetCidr(InetAddress, int) - Constructor for class org.dhcp4java.InetCidr
Constructor for InetCidr.
InetCidr(InetAddress, InetAddress) - Constructor for class org.dhcp4java.InetCidr
Constructs a InetCidr provided an ip address and an ip mask.
init() - Method in class org.dhcp4java.DHCPCoreServer
Initialize the server context from the Properties, and open socket.
init(Properties) - Method in class org.dhcp4java.DHCPServlet
Initialize servlet.
initServer(DHCPServlet, Properties) - Static method in class org.dhcp4java.DHCPCoreServer
Creates and initializes a new DHCP Server.
int2Bytes(int) - Static method in class org.dhcp4java.DHCPOption
 
int2InetAddress(int) - Static method in class org.dhcp4java.Util
Converts 32 bits int to IPv4 InetAddress.
isDhcp() - Method in class org.dhcp4java.DHCPPacket
Returns whether the packet is DHCP or BOOTP.
isMirror() - Method in class org.dhcp4java.DHCPOption
Returns whether the option is marked as "mirror", meaning it should mirror the option value in the client request.
isOptionAsByte(byte) - Static method in class org.dhcp4java.DHCPOption
 
isOptionAsBytes(byte) - Static method in class org.dhcp4java.DHCPOption
 
isOptionAsInetAddr(byte) - Static method in class org.dhcp4java.DHCPOption
 
isOptionAsInetAddrs(byte) - Static method in class org.dhcp4java.DHCPOption
 
isOptionAsInt(byte) - Static method in class org.dhcp4java.DHCPOption
 
isOptionAsShort(byte) - Static method in class org.dhcp4java.DHCPOption
 
isOptionAsShorts(byte) - Static method in class org.dhcp4java.DHCPOption
 
isOptionAsString(byte) - Static method in class org.dhcp4java.DHCPOption
 
isSorted(List<InetCidr>) - Static method in class org.dhcp4java.InetCidr
Checks whether a list of InetCidr is strictly sorted (no 2 equal objects).
isTruncated() - Method in class org.dhcp4java.DHCPPacket
Indicates that the DHCP packet has been truncated and did not finished with a 0xFF option.

L

long2InetAddress(long) - Static method in class org.dhcp4java.Util
Converts 32 bits int packaged into a 64bits long to IPv4 InetAddress.

M

m_aProperties - Variable in class org.dhcp4java.DHCPCoreServer
Consolidated parameters of the server.
m_aServer - Variable in class org.dhcp4java.DHCPServlet
the server instance running this servlet
m_aServlet - Variable in class org.dhcp4java.DHCPCoreServer
the servlet it must run
m_aThreadPool - Variable in class org.dhcp4java.DHCPCoreServer
working threads pool.
m_aUserProps - Variable in class org.dhcp4java.DHCPCoreServer
Reference of user-provided parameters
main(String[]) - Static method in class org.dhcp4java.DHCPOption
 
main(String[]) - Static method in class org.dhcp4java.examples.DHCPClient
 
main(String[]) - Static method in class org.dhcp4java.examples.DHCPSniffer
 
main(String[]) - Static method in class org.dhcp4java.examples.DHCPSnifferServlet
Launcher for the server.
makeDHCPAck(DHCPPacket, InetAddress, int, InetAddress, String, DHCPOption[]) - Static method in class org.dhcp4java.DHCPResponseFactory
Create a populated DHCPACK response.
makeDHCPNak(DHCPPacket, InetAddress, String) - Static method in class org.dhcp4java.DHCPResponseFactory
Create a populated DHCPNAK response.
makeDHCPOffer(DHCPPacket, InetAddress, int, InetAddress, String, DHCPOption[]) - Static method in class org.dhcp4java.DHCPResponseFactory
Create a populated DHCPOFFER response.
marshall(byte[], int, int, InetAddress, int, boolean) - Method in class org.dhcp4java.DHCPPacket
Convert a specified byte array containing a DHCP message into a DHCPMessage object.

N

newOptionAsByte(byte, byte) - Static method in class org.dhcp4java.DHCPOption
Creates a DHCP Option as Byte format.
newOptionAsInetAddress(byte, InetAddress) - Static method in class org.dhcp4java.DHCPOption
Sets a DHCP Option as InetAddress format.
newOptionAsInetAddresses(byte, InetAddress[]) - Static method in class org.dhcp4java.DHCPOption
Creates a DHCP Option as InetAddress array format.
newOptionAsInt(byte, int) - Static method in class org.dhcp4java.DHCPOption
Creates a DHCP Option as Integer format.
newOptionAsShort(byte, short) - Static method in class org.dhcp4java.DHCPOption
Creates a DHCP Option as Short format.
newOptionAsShorts(byte, short[]) - Static method in class org.dhcp4java.DHCPOption
Creates a DHCP Options as Short[] format.
newOptionAsString(byte, String) - Static method in class org.dhcp4java.DHCPOption
Creates a DHCP Option as String format.

O

org.dhcp4java - package org.dhcp4java
This package provides classes for manipulating DHCP Packets: creating, parsing and sending.
org.dhcp4java.examples - package org.dhcp4java.examples
This package provides simple examples using DHCP API.

P

PACKET_SIZE - Static variable in class org.dhcp4java.DHCPCoreServer
default MTU for ethernet
parseNewOption(byte, Class<?>, String) - Static method in class org.dhcp4java.DHCPOption
Parse an option from a pure string representation.
parseSocketAddress(String) - Static method in class org.dhcp4java.DHCPCoreServer
Parse a string of the form 'server:port' or '192.168.1.10:67'.
postProcess(DatagramPacket, DatagramPacket) - Method in class org.dhcp4java.DHCPServlet
You have a chance to catch response before it is sent back to client.

R

removeAllOptions() - Method in class org.dhcp4java.DHCPPacket
Remove all options.
removeOption(byte) - Method in class org.dhcp4java.DHCPPacket
Remove this option from the options list.
run() - Method in class org.dhcp4java.DHCPCoreServer
This is the main loop for accepting new request and delegating work to servlets in different threads.

S

sendResponse(DatagramPacket) - Method in class org.dhcp4java.DHCPCoreServer
Send back response packet to client.
serialize() - Method in class org.dhcp4java.DHCPPacket
Converts the object to a byte array ready to be sent on the wire.
serialize(int, int) - Method in class org.dhcp4java.DHCPPacket
Converts the object to a byte array ready to be sent on the wire.
SERVER_ADDRESS - Static variable in class org.dhcp4java.DHCPCoreServer
 
SERVER_THREADS - Static variable in class org.dhcp4java.DHCPCoreServer
 
SERVER_THREADS_KEEPALIVE - Static variable in class org.dhcp4java.DHCPCoreServer
 
SERVER_THREADS_MAX - Static variable in class org.dhcp4java.DHCPCoreServer
 
service(DHCPPacket) - Method in class org.dhcp4java.DHCPServlet
General method for parsing a DHCP request.
service(DHCPPacket) - Method in class org.dhcp4java.examples.DHCPSnifferServlet
Print received packet as INFO log, and do not respnd.
serviceDatagram(DatagramPacket) - Method in class org.dhcp4java.DHCPServlet
Low-level method for receiving a UDP Daragram and sending one back.
setAddress(InetAddress) - Method in class org.dhcp4java.DHCPPacket
Sets the IP address of the machine to which this datagram is being sent.
setAddrPort(InetSocketAddress) - Method in class org.dhcp4java.DHCPPacket
Syntactic sugar for setAddress/setPort.
setChaddr(byte[]) - Method in class org.dhcp4java.DHCPPacket
Sets the chaddr field (Client hardware address - typically MAC address).
setChaddrHex(String) - Method in class org.dhcp4java.DHCPPacket
Sets the chaddr field - from an hex String.
setCiaddr(InetAddress) - Method in class org.dhcp4java.DHCPPacket
Sets the ciaddr field (Client IP Address).
setCiaddr(String) - Method in class org.dhcp4java.DHCPPacket
Sets the ciaddr field (Client IP Address).
setCiaddrRaw(byte[]) - Method in class org.dhcp4java.DHCPPacket
Sets the ciaddr field (Client IP Address).
setComment(String) - Method in class org.dhcp4java.DHCPPacket
Sets the comment associated to this packet.
setDhcp(boolean) - Method in class org.dhcp4java.DHCPPacket
Sets the isDhcp flag.
setDHCPMessageType(byte) - Method in class org.dhcp4java.DHCPPacket
Sets the DHCP Option Type.
setFile(String) - Method in class org.dhcp4java.DHCPPacket
Sets the file field (Boot File Name) as String.
setFileRaw(byte[]) - Method in class org.dhcp4java.DHCPPacket
Sets the file field (Boot File Name) as String.
setFlags(short) - Method in class org.dhcp4java.DHCPPacket
Sets the flags field.
setGiaddr(InetAddress) - Method in class org.dhcp4java.DHCPPacket
Sets the giaddr field (Relay agent IP address).
setGiaddr(String) - Method in class org.dhcp4java.DHCPPacket
Sets the giaddr field (Relay agent IP address).
setGiaddrRaw(byte[]) - Method in class org.dhcp4java.DHCPPacket
Sets the giaddr field (Relay agent IP address).
setHlen(byte) - Method in class org.dhcp4java.DHCPPacket
Sets the hlen field (Hardware address length).
setHops(byte) - Method in class org.dhcp4java.DHCPPacket
Sets the hops field.
setHtype(byte) - Method in class org.dhcp4java.DHCPPacket
Sets the htype field (Hardware address length).
setOp(byte) - Method in class org.dhcp4java.DHCPPacket
Sets the op field (Message op code).
setOption(DHCPOption) - Method in class org.dhcp4java.DHCPPacket
Sets the option specified for the option.
setOptionAsByte(byte, byte) - Method in class org.dhcp4java.DHCPPacket
Sets a DHCP Option as Byte format.
setOptionAsInetAddress(byte, InetAddress) - Method in class org.dhcp4java.DHCPPacket
Sets a DHCP Option as InetAddress format.
setOptionAsInetAddress(byte, String) - Method in class org.dhcp4java.DHCPPacket
Sets a DHCP Option as InetAddress format.
setOptionAsInetAddresses(byte, InetAddress[]) - Method in class org.dhcp4java.DHCPPacket
Sets a DHCP Option as InetAddress array format.
setOptionAsInt(byte, int) - Method in class org.dhcp4java.DHCPPacket
Sets a DHCP Option as Integer format.
setOptionAsShort(byte, short) - Method in class org.dhcp4java.DHCPPacket
Sets a DHCP Option as Short format.
setOptionAsString(byte, String) - Method in class org.dhcp4java.DHCPPacket
Sets a DHCP Option as String format.
setOptionRaw(byte, byte[]) - Method in class org.dhcp4java.DHCPPacket
Sets the option specified for the option.
setOptions(DHCPOption[]) - Method in class org.dhcp4java.DHCPPacket
Sets an array of options.
setOptions(Collection<DHCPOption>) - Method in class org.dhcp4java.DHCPPacket
Sets a Collection of options.
setPadding(byte[]) - Method in class org.dhcp4java.DHCPPacket
Sets the padding buffer.
setPaddingWithZeroes(int) - Method in class org.dhcp4java.DHCPPacket
Sets the padding buffer with length zero bytes.
setPort(int) - Method in class org.dhcp4java.DHCPPacket
Sets the port number on the remote host to which this datagram is being sent.
setSecs(short) - Method in class org.dhcp4java.DHCPPacket
Sets the secs field (seconds elapsed).
setServer(DHCPCoreServer) - Method in class org.dhcp4java.DHCPServlet
 
setSiaddr(InetAddress) - Method in class org.dhcp4java.DHCPPacket
Sets the siaddr field (IP address of next server).
setSiaddr(String) - Method in class org.dhcp4java.DHCPPacket
Sets the siaddr field (IP address of next server).
setSiaddrRaw(byte[]) - Method in class org.dhcp4java.DHCPPacket
Sets the siaddr field (IP address of next server).
setSname(String) - Method in class org.dhcp4java.DHCPPacket
Sets the sname field (Optional server host name) as String.
setSnameRaw(byte[]) - Method in class org.dhcp4java.DHCPPacket
Sets the sname field (Optional server host name) as String.
setXid(int) - Method in class org.dhcp4java.DHCPPacket
Sets the xid field (Transaction ID).
setYiaddr(InetAddress) - Method in class org.dhcp4java.DHCPPacket
Sets the yiaddr field ('your' IP address).
setYiaddr(String) - Method in class org.dhcp4java.DHCPPacket
Sets the yiaddr field ('your' IP address).
setYiaddrRaw(byte[]) - Method in class org.dhcp4java.DHCPPacket
Sets the yiaddr field ('your' IP address).
short2Bytes(short) - Static method in class org.dhcp4java.DHCPOption
 
stopServer() - Method in class org.dhcp4java.DHCPCoreServer
This method stops the server and closes the socket.
string2Class(String) - Static method in class org.dhcp4java.DHCPOption
Simple method for converting from string to supported class format.
stringListToUserClass(List<String>) - Static method in class org.dhcp4java.DHCPOption
Converts this list of strings to a DHO_USER_CLASS (77) option.
stringToBytes(String) - Static method in class org.dhcp4java.Util
 

T

toLong() - Method in class org.dhcp4java.InetCidr
Returns a long representation of Cidr.
toString() - Method in class org.dhcp4java.DHCPOption
Returns a detailed string representation of the DHCP datagram.
toString() - Method in class org.dhcp4java.DHCPPacket
Returns a detailed string representation of the DHCP datagram.
toString() - Method in class org.dhcp4java.HardwareAddress
Prints the hardware address in hex format, split by ":".
toString() - Method in class org.dhcp4java.InetCidr
 

U

userClassToList(byte[]) - Static method in class org.dhcp4java.DHCPOption
Convert DHO_USER_CLASS (77) option to a List.
userClassToString(byte[]) - Static method in class org.dhcp4java.DHCPOption
Converts DHO_USER_CLASS (77) option to a printable string
Util - Class in org.dhcp4java
 
A B C D E F G H I L M N O P R S T U 

Copyright © 2018 Philip Helger. All rights reserved.