aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/libpcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-12-15 02:25:50 +0000
committerGuy Harris <guy@alum.mit.edu>1999-12-15 02:25:50 +0000
commit9658c33db60e0185272c6ab30879b79da9cf69a0 (patch)
treea6be39d6fa9fd69c38f45e14a22c9ac9d8c29025 /wiretap/libpcap.c
parentd1fa349620d4934b0e35559af5a9bf38d8dc01eb (diff)
Handle i4btrace captures if they're from a machine with the opposite
byte order from the machine that's reading them. svn path=/trunk/; revision=1338
Diffstat (limited to 'wiretap/libpcap.c')
-rw-r--r--wiretap/libpcap.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/wiretap/libpcap.c b/wiretap/libpcap.c
index e290a3d790..92da968682 100644
--- a/wiretap/libpcap.c
+++ b/wiretap/libpcap.c
@@ -1,6 +1,6 @@
/* libpcap.c
*
- * $Id: libpcap.c,v 1.27 1999/12/11 00:40:39 guy Exp $
+ * $Id: libpcap.c,v 1.28 1999/12/15 02:25:50 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.edu>
@@ -53,16 +53,6 @@
#define PCAP_MODIFIED_MAGIC 0xa1b2cd34
#define PCAP_SWAPPED_MODIFIED_MAGIC 0x34cdb2a1
-/* Macros to byte-swap 32-bit and 16-bit quantities. */
-#define BSWAP32(x) \
- ((((x)&0xFF000000)>>24) | \
- (((x)&0x00FF0000)>>8) | \
- (((x)&0x0000FF00)<<8) | \
- (((x)&0x000000FF)<<24))
-#define BSWAP16(x) \
- ((((x)&0xFF00)>>8) | \
- (((x)&0x00FF)<<8))
-
/* On some systems, the FDDI MAC addresses are bit-swapped. */
#if !defined(ultrix) && !defined(__alpha) && !defined(__bsdi__)
#define BIT_SWAPPED_MAC_ADDRS