class PacketGen::Header::DHCPv6::DUID_LLT

DUID Based on Link-layer Address Plus Time @author Sylvain Daubert

Constants

BASE_TIME

Base time for time computation

Public Instance Methods

time() click to toggle source

@return [Time]

# File lib/packetgen/header/dhcpv6/duid.rb, line 88
def time
  BASE_TIME + self[:time].to_i
end
time=(time) click to toggle source

@param [Time] time @return [Time]

# File lib/packetgen/header/dhcpv6/duid.rb, line 94
def time=(time)
  self[:time].value = time - BASE_TIME
end
to_human() click to toggle source

Get human-readable DUID description @return [String]

# File lib/packetgen/header/dhcpv6/duid.rb, line 100
def to_human
  "DUID_LLT<#{time},#{link_addr}>"
end