tcpdump mailing list archives

Missing pcap_dump_flush


From: "Gisle Vanem" <giva () bgnett no>
Date: Sun, 22 Dec 2002 17:03:20 +0100

Hi,

WinPcap 3.0 alpha 4 doesn't have 'pcap_dump_flush()' so the following patch is
needed in tcpdump.c:

--------------------------------------------------------------------
--- tcpdump.c.org Sun Dec 22 00:15:28 2002
+++ tcpdump.c Sun Dec 22 15:55:49 2002
@@ -273,7 +273,7 @@
 #define B_FLAG  "B:"
 #define B_FLAG_USAGE " [ -B size ]"
 #define D_FLAG  "D"
-#define U_FLAG  "U"
+#define U_FLAG
 #else /* WIN32 */

 #define B_FLAG
@@ -846,7 +846,7 @@
  }

  pcap_dump((u_char *)dump_info->p, h, sp);
-#ifdef HAVE_PCAP_FINDALLDEVS
+#ifdef HAVE_PCAP_DUMP_FLUSH
  if (Uflag)
   pcap_dump_flush(dump_info->p);
 #endif
@@ -862,7 +862,7 @@
  ++infodelay;

  pcap_dump(user, h, sp);
-#ifdef HAVE_PCAP_FINDALLDEVS
+#ifdef HAVE_PCAP_DUMP_FLUSH
  if (Uflag)
   pcap_dump_flush((pcap_dumper_t *)user);
 #endif

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

"#ifdef HAVE_PCAP_FINDALLDEVS" must be a typo. Should be 
"#ifdef HAVE_PCAP_DUMP_FLUSH".

Gisle V.

# rm /bin/laden 
/bin/laden: Not found 

-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe


Current thread: