Class: PacketGen::Header::OSPFv2::External
Overview
Instance Attribute Summary collapse
Instance Method Summary
collapse
#format_inspect, #read, #sz, #to_s, #type_name
#[], #[]=, #bits_on, define_bit_fields_on, define_field, define_field_after, define_field_before, #fields, fields, inherited, #initialize, #inspect, #offset_of, #optional?, #optional_fields, #present?, #read, remove_bit_fields_on, remove_field, #sz, #to_h, #to_s, update_field
Instance Attribute Details
#e_flag ⇒ Boolean
163
|
# File 'lib/packetgen/header/ospfv2/lsa.rb', line 163
define_bit_fields_on :u8, :e_flag, :tos, 7
|
#ext_route_tag ⇒ Integer
157
|
# File 'lib/packetgen/header/ospfv2/lsa.rb', line 157
define_field :ext_route_tag, Types::Int32
|
#forwarding_addr ⇒ IP::Addr
154
|
# File 'lib/packetgen/header/ospfv2/lsa.rb', line 154
define_field :forwarding_addr, IP::Addr
|
#metric ⇒ Integer
151
|
# File 'lib/packetgen/header/ospfv2/lsa.rb', line 151
define_field :metric, Types::Int24
|
#tos ⇒ Integer
163
|
# File 'lib/packetgen/header/ospfv2/lsa.rb', line 163
define_bit_fields_on :u8, :e_flag, :tos, 7
|
#u8 ⇒ Integer
148
|
# File 'lib/packetgen/header/ospfv2/lsa.rb', line 148
define_field :u8, Types::Int8
|
Instance Method Details
#to_human ⇒ String
166
167
168
|
# File 'lib/packetgen/header/ospfv2/lsa.rb', line 166
def to_human
"<type:#{e_flag? ? 2 : 1},tos:#{tos},metric:#{metric},fwaddr:#{forwarding_addr},tag:#{ext_route_tag}>"
end
|