Method: PacketGen::Header::OSPFv2.define_options
- Defined in:
- lib/packetgen/header/ospfv2.rb
permalink .define_options(hdr) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Helper class method to define an OSPFv2 options field.
162 163 164 |
# File 'lib/packetgen/header/ospfv2.rb', line 162 def self.(hdr) hdr.define_bit_attr :options, dn_opt: 1, o_opt: 1, dc_opt: 1, l_opt: 1, n_opt: 1, mc_opt: 1, e_opt: 1, mt_opt: 1 end |