Package ru.bitel.bgbilling.kernel.network.dhcp

# Class DhcpOption

java.lang.Object
ru.bitel.bgbilling.kernel.network.dhcp.DhcpOption

public class DhcpOption extends Object
DHCP опция либо субопция. Характеризуется кодом и значением. Код опции соответствует RFC2132, RFC1533, RFC3046

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `final byte`
  `code`
  `byte[]`
  `value`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DhcpOption(byte code, byte[] value)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object obj)`
  `final byte`
  `getFirst()`
  `String`
  `getValueAsString()`
  `int`
  `hashCode()`
  `static DhcpOption`
  `parseOption(int optionCode, String value)`
  `static DhcpOption`
  `parseOption(String name, String value)`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### code

    public final byte code

  - ### value

    public byte[] value

- ## Constructor Details

  - ### DhcpOption

    public DhcpOption(byte code, byte[] value)

- ## Method Details

  - ### getValueAsString

    public String getValueAsString()

  - ### getFirst

    public final byte getFirst()

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### equals

    public boolean equals(Object obj)
    Overrides:
      `equals` in class `Object`

  - ### parseOption

    public static DhcpOption parseOption(String name, String value)

  - ### parseOption

    public static DhcpOption parseOption(int optionCode, String value)