*.vcxproj.user
Debug/
Release/
-/msdos/.depend.dj
-/msdos/bin2c.exe
-/msdos/pkt_rx1.lst
-/msdos/pkt_stub.inc
pcap-dbus.c - D-Bus capture support
pcap-dbus.h - D-Bus capture support
pcap-dlpi.c - Data Link Provider Interface support
- pcap-dos.c - removed in 2023, after libpcap 1.10
pcap-dpdk.c - DPDK device support
pcap-dpdk.h - DPDK device support
pcap-hurd.c - GNU Hurd support
*
* XXX - verify that we have at least C99 support on UN*Xes?
*
- * What about MinGW or various DOS toolchains? We're currently assuming
+ * What about MinGW? We're currently assuming
* sufficient C99 support there.
*/
#if defined(_MSC_VER)
/* BSD style release date */
#define BPF_RELEASE 199606
-#ifdef MSDOS /* must be 32-bit */
-typedef long bpf_int32;
-typedef unsigned long bpf_u_int32;
-#else
typedef int bpf_int32;
typedef u_int bpf_u_int32;
-#endif
/*
* Alignment macros. BPF_WORDALIGN rounds up to the next
*/
#define PCAP_API_DEF
#endif
-#elif defined(MSDOS)
- /* XXX - does this need special treatment? */
- #define PCAP_API_DEF
#else /* UN*X */
#ifdef pcap_EXPORTS
/*
*/
#define PCAP_API_DEF
#endif
-#endif /* _WIN32/MSDOS/UN*X */
+#endif /* _WIN32/UN*X */
#define PCAP_API PCAP_API_DEF extern
*
* XXX - verify that we have at least C99 support on UN*Xes?
*
- * What about MinGW or various DOS toolchains? We're currently assuming
+ * What about MinGW? We're currently assuming
* sufficient C99 support there.
*/
#if defined(_MSC_VER)
* environment, and thus have <inttypes.h> - and support for %zu in
* the formatted printing functions.
*
- * If the target is MS-DOS, we assume we have <inttypes.h> - and support
- * for %zu in the formatted printing functions.
- *
* I.e., assume we have <inttypes.h> and that it suffices.
*/
#if defined(_WIN32)
#include <winsock2.h> /* u_int, u_char etc. */
#include <io.h> /* _get_osfhandle() */
-#elif defined(MSDOS)
- #include <sys/types.h> /* u_int, u_char etc. */
- #include <sys/socket.h>
#else /* UN*X */
#include <sys/types.h> /* u_int, u_char etc. */
#include <sys/time.h>
-#endif /* _WIN32/MSDOS/UN*X */
+#endif /* _WIN32/UN*X */
#include <pcap/socket.h> /* for PCAP_SOCKET, as the active-mode rpcap APIs use it */
#endif
/*
- * Setting O_BINARY on DOS/Windows is a bit tricky
+ * Setting O_BINARY on Windows is a bit tricky.
*/
#if defined(_WIN32)
#define SET_BINMODE(f) _setmode(_fileno(f), _O_BINARY)
"The standard input is not open");
return (NULL);
}
-#if defined(_WIN32) || defined(MSDOS)
+#if defined(_WIN32)
/*
* We're reading from the standard input, so put it in binary
* mode, as savefiles are binary files.
* wraps fopen().
*
* "b" is supported as of C90, so *all* UN*Xes should
- * support it, even though it does nothing. For MS-DOS,
- * we again need it.
+ * support it, even though it does nothing.
*/
fp = pcapint_charset_fopen(fname, "rb");
if (fp == NULL) {
/* Padding only needed for live capture fcode */
p->fddipad = 0;
-#if !defined(_WIN32) && !defined(MSDOS)
+#if !defined(_WIN32)
/*
* You can do "select()" and "poll()" on plain files on most
* platforms, and should be able to do so on pipes.
#include "sf-pcap.h"
/*
- * Setting O_BINARY on DOS/Windows is a bit tricky
+ * Setting O_BINARY on Windows is a bit tricky.
*/
#if defined(_WIN32)
#define SET_BINMODE(f) _setmode(_fileno(f), _O_BINARY)
pcap_setup_dump(pcap_t *p, int linktype, FILE *f, const char *fname)
{
-#if defined(_WIN32) || defined(MSDOS)
+#if defined(_WIN32)
/*
* If we're writing to the standard output, put it in binary
* mode, as savefiles are binary files.
}
}
-#if defined(_WIN32) || defined(MSDOS)
+#if defined(_WIN32)
/*
* We turn off buffering.
* XXX - why? And why not on the standard output?