[Winpcap-bugs] [PATCH] Remote tracing timeout, 3rd try

Gianluca Varenni gianluca.varenni at cacetech.com
Mon Aug 14 18:38:49 GMT 2006


Martin,

I applied both this patch, and the one you submitted at the end of July 
(http://www.winpcap.org/pipermail/winpcap-bugs/2006-July/000252.html), to 
our CVS tree.

It will appear in the next release of WinPcap.

Thanks for the reports!

Have a nice day
GV

----- Original Message ----- 
From: "Martin Gadbois" <martin.gadbois at colubris.com>
To: <winpcap-bugs at winpcap.org>
Sent: Wednesday, August 09, 2006 7:47 AM
Subject: [Winpcap-bugs] [PATCH] Remote tracing timeout, 3rd try


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Grrr...
>
> The third time is a charm:
> The previous patch was based on the 1st one... Here's the same fix, but
> on the original source.
>
> - --
> ==============         +----------------------------------------------+
> Martin Gadbois         | "Windows might take you from 0 to 60 faster, |
> S/W Developer          |  but to go to 100 you need Unix."            |
> Colubris Networks Inc. +----------------------------------------------+
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFE2fWW9Y3/iTTCEDkRAnYpAJ9cTXlLr4TKjTDEyQUEUXxt9DR7IQCeJzhv
> 2koJ3S7ScpBG1SgHdijaDV0=
> =fIFu
> -----END PGP SIGNATURE-----
>


--------------------------------------------------------------------------------


> diff -ur libpcap-org/pcap-remote.c libpcap/pcap-remote.c
> --- libpcap-org/pcap-remote.c 2006-08-09 10:42:31.000000000 -0400
> +++ libpcap/pcap-remote.c 2006-08-09 10:43:53.000000000 -0400
> @@ -368,10 +368,13 @@
> u_char *pkt_data;
> int n = 0;
>
> - while ( (++n <= cnt) || (cnt < 0) )
> + while ( (n < cnt) || (cnt < 0) )
>  {
>  if (pcap_read_nocb_remote(p, &pkt_header, &pkt_data) == 1)
> + {
>  (*callback)(user, pkt_header, pkt_data);
> + n++;
> + }
>  else
>  return n;
>  }
>


--------------------------------------------------------------------------------


> _______________________________________________
> Winpcap-bugs mailing list
> Winpcap-bugs at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-bugs
> 



More information about the Winpcap-bugs mailing list