v2.7 modify buf_window and initial value of lfs, lar, lfr and seq_num to be 0