class Net::SSH::Transport::Algorithms

def self.allowed_packet?(packet)

Returns true if the given packet can be processed during a key-exchange.
def self.allowed_packet?(packet)
  (1..4).include?(packet.type) ||
  (6..19).include?(packet.type) ||
  (21..49).include?(packet.type)
end