aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wiretap/libpcap.c5
-rw-r--r--wiretap/pcap-common.c12
2 files changed, 12 insertions, 5 deletions
diff --git a/wiretap/libpcap.c b/wiretap/libpcap.c
index c0b90cc5cb..877464c3e7 100644
--- a/wiretap/libpcap.c
+++ b/wiretap/libpcap.c
@@ -50,11 +50,6 @@ typedef struct {
void *encap_priv;
} libpcap_t;
-/* On some systems, the FDDI MAC addresses are bit-swapped. */
-#if !defined(ultrix) && !defined(__alpha) && !defined(__bsdi__)
-#define BIT_SWAPPED_MAC_ADDRS
-#endif
-
/* Try to read the first two records of the capture file. */
static int libpcap_try(wtap *wth, int *err, gchar **err_info);
static int libpcap_try_header(wtap *wth, FILE_T fh, int *err, gchar **err_info,
diff --git a/wiretap/pcap-common.c b/wiretap/pcap-common.c
index 0950e5adad..d615411b76 100644
--- a/wiretap/pcap-common.c
+++ b/wiretap/pcap-common.c
@@ -35,6 +35,18 @@
#include "pcap-common.h"
/*
+ * On some systems, the FDDI MAC addresses are bit-swapped.
+ *
+ * XXX - what we *really* need to know is whether the addresses are
+ * bit-swapped *in a particular capture*, which depends on the system
+ * on which it was captured, not on the system that's reading it.
+ * Unfortunately, we can't determine that.
+ */
+#if !defined(ultrix) && !defined(__alpha) && !defined(__bsdi__)
+#define BIT_SWAPPED_MAC_ADDRS
+#endif
+
+/*
* Map link-layer header types (LINKTYPE_ values) to Wiretap encapsulations.
*
* Either LBL NRG wasn't an adequate central registry (e.g., because of