lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] [lwip] Date: Wed, 27 Feb 2002 16:44:34 +0500


From: Muhammad Ashraf
Subject: [lwip-users] [lwip] Date: Wed, 27 Feb 2002 16:44:34 +0500
Date: Thu, 09 Jan 2003 00:49:03 -0000

This is a multi-part message in MIME format.

------=_NextPart_000_00A1_01C1BFAE.0916FA00
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

i want to ask the purpose of the three variables define in the tcp_pcb =
structure.

snd_wl1
snd_wl2
snd_lbb

i know that snd_wl1 and snd_wl2 used for window updation but i am not =
able to understand that how these variables are used to=20
update the window.

In LwIP when tcp_new function is called it creates a new tcp_pcb =
structure type variable and put snd_wl2 to initial sequence number.

Now what about the snd_wl1.How it is set and used.Also in function =
tcp_receive what is purpose of this line of code

  if(TCP_SEQ_LT(pcb->snd_wl1, seqno) ||(pcb->snd_wl1 =3D=3D seqno && =
TCP_SEQ_LT(pcb->snd_wl2, ackno)) || (pcb->snd_wl2 =3D=3D ackno && =
seg->tcphdr->wnd > pcb->snd_wnd)) {


Regards=20

ashraf


------=_NextPart_000_00A1_01C1BFAE.0916FA00
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>i want to ask the purpose of the three =
variables=20
define in the tcp_pcb structure.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>snd_wl1</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>snd_wl2<BR>snd_lbb</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>i know that snd_wl1 and snd_wl2 used =
for window=20
updation but i am not able to understand that how these variables are =
used to=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>update the window.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>In LwIP when tcp_new function is called =
it creates=20
a new tcp_pcb structure type variable and put snd_wl2 to initial =
sequence=20
number.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Now what about the snd_wl1.How it is =
set and=20
used.Also in function tcp_receive what is purpose of this line of=20
code</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>&nbsp;&nbsp;if(TCP_SEQ_LT(pcb-&gt;snd_wl1, seqno)=20
||(pcb-&gt;snd_wl1 =3D=3D seqno &amp;&amp; TCP_SEQ_LT(pcb-&gt;snd_wl2, =
ackno)) ||=20
(pcb-&gt;snd_wl2 =3D=3D ackno &amp;&amp; seg-&gt;tcphdr-&gt;wnd &gt;=20
pcb-&gt;snd_wnd)) {<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regards </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>ashraf</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</DIV></FONT></BODY></HTML>

------=_NextPart_000_00A1_01C1BFAE.0916FA00--

[This message was sent through the lwip discussion list.]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]