Home | History | Annotate | Download | only in TcpDxe

Lines Matching defs:Seg

97   @param[in]       Seg    Pointer to the segment that contains the peer's intial info.

104 IN TCP_SEG *Seg,
110 ASSERT ((Tcb != NULL) && (Seg != NULL) && (Opt != NULL));
111 ASSERT (TCP_FLG_ON (Seg->Flag, TCP_FLG_SYN));
113 Tcb->SndWnd = Seg->Wnd;
115 Tcb->SndWl1 = Seg->Seq;
117 if (TCP_FLG_ON (Seg->Flag, TCP_FLG_ACK)) {
118 Tcb->SndWl2 = Seg->Ack;
140 Tcb->Irs = Seg->Seq;
694 TCP_SEG *Seg;
697 Seg = TCPSEG_NETBUF (Nbuf);
703 Seg->Seq = NTOHL (Head->Seq);
704 Seg->Ack = NTOHL (Head->Ack);
705 Seg->End = Seg->Seq + (Nbuf->TotalSize - (Head->HeadLen << 2));
707 Seg->Urg = NTOHS (Head->Urg);
708 Seg->Wnd = (NTOHS (Head->Wnd) << Tcb->SndWndScale);
709 Seg->Flag = Head->Flag;
714 if (TCP_FLG_ON (Seg->Flag, TCP_FLG_SYN)) {
718 Seg->Wnd = NTOHS (Head->Wnd);
719 Seg->End++;
722 if (TCP_FLG_ON (Seg->Flag, TCP_FLG_FIN)) {
723 Seg->End++;
726 return Seg;