lib/packetgen/header/ospfv2.rb in packetgen-3.2.0 vs lib/packetgen/header/ospfv2.rb in packetgen-3.2.1

- old
+ new

@@ -165,10 +165,10 @@ # @api private # @note This method is used internally by PacketGen and should not be # directly called def added_to_packet(packet) ospf_idx = packet.headers.size - packet.instance_eval "def ospfize(**kwargs) @headers[#{ospf_idx}].ospfize(**kwargs); end" + packet.instance_eval "def ospfize(**kwargs) @headers[#{ospf_idx}].ospfize(**kwargs); end" # def ospfize(**kwargs) @headers[2].ospfize(**kwargs); end end # Compute checksum and set +checksum+ field # @return [Integer] def calc_checksum