Core API 7.6

net.juniper.smgt.sae.portal
Interface DhcpOptions

All Known Subinterfaces:
DhcpPacket

public interface DhcpOptions

Encapsulation of DHCP options. See RFC 2131 and RFC 2132 for details about DHCP options.

Since:
4.0

Method Summary
 byte[] getBytes()
          Format set of DHCP options into TLV encoded byte array.
 DhcpOption getOption(int code)
           
 Iterator iterator()
           
 

Method Detail

getOption

DhcpOption getOption(int code)
Parameters:
code - DHCP option code
Returns:
DHCP option associated with code. If code does not exist, return null instead.
Since:
4.0

iterator

Iterator iterator()
Returns:
Iterator over DHCP options. Each iterated object implements DhcpOption.
Since:
4.0

getBytes

byte[] getBytes()
Format set of DHCP options into TLV encoded byte array. Note: the order of options is not preserved, i.e. DhcpOptions(b).getBytes() != b

Returns:
TLV encode options
Since:
4.2

Core API 7.6