ssh_packet_type_is_kex
need_rekey = !ssh_packet_type_is_kex(type) &&
if ((need_rekey || state->rekeying) && !ssh_packet_type_is_kex(type)) {