Class DHCPOptions


  • public class DHCPOptions
    extends java.lang.Object
    • Constructor Detail

      • DHCPOptions

        public DHCPOptions()
    • Method Detail

      • setOption

        public void setOption​(byte code,
                              byte[] opt)
      • getOptionBytes

        public @org.eclipse.jdt.annotation.Nullable byte[] getOptionBytes​(byte code)
      • setOptionByte

        public void setOptionByte​(byte code,
                                  byte opt)
      • getOptionByte

        public byte getOptionByte​(byte code)
      • setOptionShort

        public void setOptionShort​(byte code,
                                   short opt)
      • getOptionShort

        public short getOptionShort​(byte code)
      • setOptionInt

        public void setOptionInt​(byte code,
                                 int opt)
      • getOptionInt

        public int getOptionInt​(byte code)
      • setOptionInetAddr

        public void setOptionInetAddr​(byte code,
                                      java.net.InetAddress opt)
      • getOptionInetAddr

        public @Nullable java.net.InetAddress getOptionInetAddr​(byte code)
      • setOptionStrAddr

        public void setOptionStrAddr​(byte code,
                                     java.lang.String opt)
                              throws java.net.UnknownHostException
        Throws:
        java.net.UnknownHostException
      • getOptionStrAddr

        public @Nullable java.lang.String getOptionStrAddr​(byte code)
      • setOptionStrAddrs

        public void setOptionStrAddrs​(byte code,
                                      java.util.List<java.lang.String> addrs)
                               throws java.net.UnknownHostException
        Throws:
        java.net.UnknownHostException
      • setOptionString

        public void setOptionString​(byte code,
                                    java.lang.String str)
      • serialize

        public byte[] serialize()
      • deserialize

        public void deserialize​(byte[] serializedOptions)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • containsOption

        public boolean containsOption​(byte code)
      • unsetOption

        public org.opendaylight.netvirt.dhcpservice.api.DHCPOptions.DhcpOption unsetOption​(byte code)