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

# Class DhcpOption

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

    public class DhcpOption
    extends java.lang.Object

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

- ## Field Summary

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

- ## Constructor Summary

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

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `boolean` | `equals​(java.lang.Object obj)` |
  `byte` | `getFirst()` |
  `java.lang.String` | `getValueAsString()` |
  `int` | `hashCode()` |
  `static DhcpOption` | `parseOption​(int optionCode, java.lang.String value)` |
  `static DhcpOption` | `parseOption​(java.lang.String name, java.lang.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 java.lang.String getValueAsString()

  - ### getFirst

    public final byte getFirst()

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `java.lang.Object`

  - ### equals

    public boolean equals​(java.lang.Object obj)
    Overrides:
      `equals` in class `java.lang.Object`

  - ### parseOption

    public static DhcpOption parseOption​(java.lang.String name, java.lang.String value)

  - ### parseOption

    public static DhcpOption parseOption​(int optionCode, java.lang.String value)