[pso] T5 Win... FIN problem...

Rizoiu Valentin pso@cursuri.cs.pub.ro
Fri, 18 Jun 2004 08:45:25 -0700 (PDT)


--0-1545701017-1087573525=:97748
Content-Type: text/plain; charset=us-ascii

sal! ...am o mica problema la tema5 pe win... cand rulez testul de pe site
nu imi vine FIN-ul pt. toate conversatiile care se termina si nu inteleg de ce .
Mentionez ca in hook pe partea de send am ceva de genul:
 
iph = (IPHeader *)PacketHeader;
if(iph->protocol==6)
  { 
       tcph=(TCPHeader *)Packet; 

           if(tcph->fin)    
          { ... afisez sursa / destinatie pt. packetul curent....
          }
         if(tcph->syn && !tcph->ack)
         {... afisez sursa / destinatie pt. packetul curent....          }
}

  ===> si deci cum spuneam   pt. codul de mai sus am pachete pt. care am syn/!ack
dar pt. care nu se genereaza si FIN :(
Any ideea plz!
        
 

		
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
--0-1545701017-1087573525=:97748
Content-Type: text/html; charset=us-ascii

<DIV>sal! ...am o mica problema la tema5 pe win... cand rulez testul de pe site</DIV>
<DIV>nu imi vine FIN-ul pt. toate conversatiile care se termina si nu inteleg de ce .</DIV>
<DIV>Mentionez ca in hook pe partea de send am ceva de genul:</DIV>
<DIV>&nbsp;</DIV>
<DIV>iph = (IPHeader *)PacketHeader;</DIV>
<DIV>if(iph-&gt;protocol==6)<BR>&nbsp;&nbsp;{&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tcph=(TCPHeader *)Packet; </DIV>
<DIV><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;if(tcph-&gt;fin)&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;... afisez sursa / destinatie pt. packetul curent....</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(tcph-&gt;syn &amp;&amp; !tcph-&gt;ack)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {... afisez sursa / destinatie pt. packetul curent....
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV>
<DIV>}</DIV></DIV>
<DIV>&nbsp;&nbsp;===&gt; si deci cum spuneam&nbsp;&nbsp;&nbsp;pt.&nbsp;codul de mai sus am pachete pt. care am syn/!ack</DIV>
<DIV>dar pt. care nu se genereaza si FIN :(</DIV>
<DIV>Any ideea plz!</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </DIV>
<DIV>&nbsp;</DIV><p>
		<hr size=1>Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/mail/taglines/*http://promotions.yahoo.com/new_mail/static/efficiency.html">New and Improved Yahoo! Mail</a> - 100MB free storage!
--0-1545701017-1087573525=:97748--