[pso] Tema 5 --- tcp flags

Rizoiu Valentin pso@cursuri.cs.pub.ro
Wed, 16 Jun 2004 01:12:09 -0700 (PDT)


--0-1891230060-1087373529=:32483
Content-Type: text/plain; charset=us-ascii

Am si eu o intrebare legata de tema5 Win:
 din ce am citit in msdn structurile pt. ip/tcp/udp nu prea ar fi definite ...si prin urmare
ar cam trebui sa le definim noi... tcphdr de ex ar trebui sa arate cam ashea:
typedef struct _tcphr
{
 USHORT   src
 USHORT   dst; 
 ULONG   seq;  
 ULONG   ack; 
 UCHAR   dataoffset; 
 UCHAR   flags;    
 USHORT   window; 
 USHORT   checksum;
 USHORT   urgent; 
} tcphdr;
 
In acest caz cum se pot scoate (din campul flags) flag-urile pt. SYN / ACK / FIN ?
Ma intereseaza  care sunt biti pe care sa-i citesc/verific..
 
 
:
          


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

<DIV>Am si eu&nbsp;o intrebare legata de tema5 Win:</DIV>
<DIV>&nbsp;din ce am citit in msdn structurile pt. ip/tcp/udp nu prea ar fi definite ...si prin urmare</DIV>
<DIV>ar cam trebui sa le definim noi... tcphdr de ex ar trebui sa arate cam ashea:<BR>typedef struct _tcphr<BR>{<BR>&nbsp;USHORT&nbsp;&nbsp;&nbsp;src</DIV>
<DIV>&nbsp;USHORT&nbsp;&nbsp;&nbsp;dst;&nbsp;<BR>&nbsp;ULONG&nbsp;&nbsp;&nbsp;seq;&nbsp;&nbsp;<BR>&nbsp;ULONG&nbsp;&nbsp;&nbsp;ack;&nbsp;<BR>&nbsp;UCHAR&nbsp;&nbsp;&nbsp;dataoffset;&nbsp;<BR>&nbsp;UCHAR&nbsp;&nbsp;&nbsp;flags;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;USHORT&nbsp;&nbsp;&nbsp;window;&nbsp;<BR>&nbsp;USHORT&nbsp;&nbsp;&nbsp;checksum;<BR>&nbsp;USHORT&nbsp;&nbsp;&nbsp;urgent;&nbsp;<BR>} tcphdr;</DIV>
<DIV>&nbsp;</DIV>
<DIV>In acest caz cum se pot scoate (din campul flags) flag-urile pt. SYN / ACK / FIN ?</DIV>
<DIV>Ma intereseaza&nbsp; care sunt biti pe care sa-i citesc/verific..</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>:</DIV>
<DIV><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </STRONG><BR></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-1891230060-1087373529=:32483--