summaryrefslogtreecommitdiff
path: root/wiretap/libpcap.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-08-18 04:17:38 +0000
committerGuy Harris <guy@alum.mit.edu>1999-08-18 04:17:38 +0000
commitdf490a7085f382fbf4867fe9811af2653af91c17 (patch)
treea92c1601d9398fedcf8cdde8585a1acdfbb17e74 /wiretap/libpcap.h
parentbc3c8c0641c3422133de1444fd214d223fb2ee80 (diff)
downloadwireshark-df490a7085f382fbf4867fe9811af2653af91c17.tar.gz
Add to Wiretap the ability to write capture files; for now, it can only
write them in "libpcap" format, but the mechanism can have other formats added. When creating the temporary file for a capture, use "create_tempfile()", to close a security hole opened by the fact that "tempnam()" creates a temporary file, but doesn't open it, and we open the file with the name it gives us - somebody could remove the file and plant a link to some file, and, if as may well be the case when Ethereal is capturing packets, it's running as "root", that means we write a capture on top of that file.... (The aforementioned changes to Wiretap let you open a capture file for writing given an file descriptor, "fdopen()"-style, which this change requires.) svn path=/trunk/; revision=509
Diffstat (limited to 'wiretap/libpcap.h')
-rw-r--r--wiretap/libpcap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/libpcap.h b/wiretap/libpcap.h
index 5de0a34e71..2bd1449996 100644
--- a/wiretap/libpcap.h
+++ b/wiretap/libpcap.h
@@ -1,6 +1,6 @@
/* libpcap.h
*
- * $Id: libpcap.h,v 1.1 1998/11/15 05:29:12 guy Exp $
+ * $Id: libpcap.h,v 1.2 1999/08/18 04:17:36 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.edu>
@@ -22,4 +22,4 @@
*/
int libpcap_open(wtap *wth);
-int libpcap_read(wtap *wth);
+int libpcap_dump_open(wtap_dumper *wdh, int *err);