Changed pendflag and succedent flag to segment flag and pending ack flag so semantics changed