class PacketGen::Header::OSPFv3::LSR

This class handle LSA requests, as used in {LSRequest} payloads. The LSA request payload has the following format:

 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              0                |        LS Type                |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         Link State ID                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                       Advertising Router                      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

It is composed of:

@author Sylvain Daubert

Public Instance Methods

human_type() click to toggle source

Get human-readable type @return [String]

# File lib/packetgen/header/ospfv3/ls_request.rb, line 52
def human_type
  self[:type].to_human
end
to_human() click to toggle source

@return [String]

# File lib/packetgen/header/ospfv3/ls_request.rb, line 57
def to_human
  "LSR<#{human_type},#{link_state_id},#{advertising_router}>"
end