Class DHCPMessage

java.lang.Object
filius.software.dhcp.DHCPMessage

public class DHCPMessage extends Object
Class representing a simplified dhcp message (e.g. without the not necessarily needed ciaddr, siaddr)
  • Method Details

    • getType

      public DHCPMessageType getType()
      DHCP message type
    • getYiaddr

      public String getYiaddr()
      Your IP address (i.e. in case of DHCP offer the available address for the client to use)
    • getChaddr

      public String getChaddr()
      Client hardware address (i.e. the clients MAC address)
    • getSubnetMask

      public String getSubnetMask()
      IP subnet mask to use
    • getRouter

      public String getRouter()
      IP address of the router to use
    • getDnsServer

      public String getDnsServer()
      IP address of the DNS server to use
    • getServerIdentifier

      public String getServerIdentifier()
      IP address of the DHCP server
    • getRequestedAddress

      public String getRequestedAddress()
      IP address the client requests from the server
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object