Class: PacketGen::Header::DHCPv6::Relay
- Defined in:
- lib/packetgen/header/dhcpv6/relay.rb
Overview
DHCPv6 Relay agent / server header
Constant Summary collapse
- MESSAGE_TYPES =
DHCPv6 Relay message types
{ 'RELAY-FORW' => 12, 'RELAY-REPL' => 13 }.freeze
Instance Attribute Summary collapse
-
#hop_count ⇒ Integer
8-bit hop count (number of relay agents that have relayed this message).
-
#link ⇒ IPv6::Addr
Link address: address that will be used by the server to identify the link on which the client is located.
-
#msg_type ⇒ Integer
8-bit message type.
-
#options ⇒ DHCPv6::Options
Set of Options.
-
#peer ⇒ IPv6::Addr
Peer address: the address of the client or relay agent from which the message to be relayed was received.
Method Summary
Methods inherited from Base
bind, calculate_and_set_length, #header_id, inherited, #initialize, #ip_header, #ll_header
Methods included from PacketGen::Headerable
#added_to_packet, included, #method_name, #packet, #packet=, #parse?, #protocol_name, #read, #to_s
Constructor Details
This class inherits a constructor from PacketGen::Header::Base
Instance Attribute Details
#hop_count ⇒ Integer
8-bit hop count (number of relay agents that have relayed this message)
29 |
# File 'lib/packetgen/header/dhcpv6/relay.rb', line 29 define_attr :hop_count, BinStruct::Int8 |
#link ⇒ IPv6::Addr
Link address: address that will be used by the server to identify the link on which the client is located
34 |
# File 'lib/packetgen/header/dhcpv6/relay.rb', line 34 define_attr :link, IPv6::Addr |
#msg_type ⇒ Integer
8-bit message type
24 |
# File 'lib/packetgen/header/dhcpv6/relay.rb', line 24 define_attr :msg_type, BinStruct::Int8Enum, enum: MESSAGE_TYPES |
#options ⇒ DHCPv6::Options
Set of Options
43 |
# File 'lib/packetgen/header/dhcpv6/relay.rb', line 43 define_attr :options, DHCPv6::Options |
#peer ⇒ IPv6::Addr
Peer address: the address of the client or relay agent from which the message to be relayed was received
39 |
# File 'lib/packetgen/header/dhcpv6/relay.rb', line 39 define_attr :peer, IPv6::Addr |