Lines Matching refs:Seg
104 IN TCP_SEG *Seg, in TcpInitTcbPeer() argument
110 ASSERT ((Tcb != NULL) && (Seg != NULL) && (Opt != NULL)); in TcpInitTcbPeer()
111 ASSERT (TCP_FLG_ON (Seg->Flag, TCP_FLG_SYN)); in TcpInitTcbPeer()
113 Tcb->SndWnd = Seg->Wnd; in TcpInitTcbPeer()
115 Tcb->SndWl1 = Seg->Seq; in TcpInitTcbPeer()
117 if (TCP_FLG_ON (Seg->Flag, TCP_FLG_ACK)) { in TcpInitTcbPeer()
118 Tcb->SndWl2 = Seg->Ack; in TcpInitTcbPeer()
140 Tcb->Irs = Seg->Seq; in TcpInitTcbPeer()
670 TCP_SEG *Seg; in TcpFormatNetbuf() local
673 Seg = TCPSEG_NETBUF (Nbuf); in TcpFormatNetbuf()
679 Seg->Seq = NTOHL (Head->Seq); in TcpFormatNetbuf()
680 Seg->Ack = NTOHL (Head->Ack); in TcpFormatNetbuf()
681 Seg->End = Seg->Seq + (Nbuf->TotalSize - (Head->HeadLen << 2)); in TcpFormatNetbuf()
683 Seg->Urg = NTOHS (Head->Urg); in TcpFormatNetbuf()
684 Seg->Wnd = (NTOHS (Head->Wnd) << Tcb->SndWndScale); in TcpFormatNetbuf()
685 Seg->Flag = Head->Flag; in TcpFormatNetbuf()
690 if (TCP_FLG_ON (Seg->Flag, TCP_FLG_SYN)) { in TcpFormatNetbuf()
694 Seg->Wnd = NTOHS (Head->Wnd); in TcpFormatNetbuf()
695 Seg->End++; in TcpFormatNetbuf()
698 if (TCP_FLG_ON (Seg->Flag, TCP_FLG_FIN)) { in TcpFormatNetbuf()
699 Seg->End++; in TcpFormatNetbuf()
702 return Seg; in TcpFormatNetbuf()