<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 9pt;
font-family:±¼¸²
}
--></style>
</head>
<body class='hmmessage'>
Hi, I am Gilber Lee.<div>You must rearrange TCP data according to SEQ value in TCP header because TCP stack uses data retransmission technique for ensuring data transfer.</div><div>WinPcap itself does not support TCP data arrangement because it is not TCP stack library.</div><div><br></div><div>Regards,</div><div>Gilbert</div><div><br>> Date: Mon, 23 Nov 2009 16:12:01 +0100<br>> To: winpcap-users@winpcap.org<br>> From: wow@gasmi.net<br>> Subject: [Winpcap-users] Packet reordering<br>> <br>> Hi !<br>> <br>> I'm using winpcap to sniff a specific tcp stream from a specific port <br>> source, thus my filter is simple as : "tcp and src port 1234"<br>> I use the function pcap_dispatch() to redirect received packet to my <br>> handler function which parse them .<br>> <br>> I noticed that I receive packets in wrong order (which is logic as <br>> TCP does not guarentee packets arrive in right order).<br>> Before rewriting the whole re-ordering/re-assembly code I was wondering if:<br>> <br>> 1: Can we ask winpcap to report packets in the right order ?<br>> 2: Do you know any lib under windows that does this, as I dislike <br>> reiventing the wheel ?<br>> <br>> Thanks for your advices .<br>> <br>> Sam<br>> <br>> <br>> <br>> _______________________________________________<br>> Winpcap-users mailing list<br>> Winpcap-users@winpcap.org<br>> https://www.winpcap.org/mailman/listinfo/winpcap-users<br></div>                                            </body>
</html>