lib/packetgen/header/ospfv2/hello.rb in packetgen-2.6.0 vs lib/packetgen/header/ospfv2/hello.rb in packetgen-2.7.0

- old
+ new

@@ -6,11 +6,10 @@ # frozen_string_literal: true module PacketGen module Header class OSPFv2 - # This class handles {OSPFv2 OSPFv2} HELLO packets payload. The HELLO # 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 # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ @@ -95,10 +94,10 @@ # Array of neighbors # @return [IP::ArrayOfAddr] define_field :neighbors, IP::ArrayOfAddr end end - + self.add_class OSPFv2::Hello - OSPFv2.bind_header OSPFv2::Hello, type: OSPFv2::TYPES['HELLO'] + OSPFv2.bind OSPFv2::Hello, type: OSPFv2::TYPES['HELLO'] end end