aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2019-05-20 15:31:59 +0200
committerPeter Wu <peter@lekensteyn.nl>2019-05-20 18:06:25 +0000
commit3e53ec5e11e141c37aa26b3472cc45bd4cdbfb0d (patch)
tree5a231fc680e4bc5f71a041561f3874aec0dcdb2b /wiretap
parent6cfc25c40e4e8bbca34621e52c62935ecfafc63a (diff)
pcapng: fix the magic when bytes are swapped.
This value is used when checking if the file was generated on a machine with different endianess. The error message changes from "Unrecognized pcapng format or not pcapng data." to "dumpcap: Interface 0 is big endian but we're little endian." Fix dumpcap.c and pcapio.c. Ping-Bug: 15754 Change-Id: I3a31f873f01bcb3f1324410e70f29f285e56c715 Reviewed-on: https://code.wireshark.org/review/33274 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/pcapng.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/pcapng.h b/wiretap/pcapng.h
index e43124da96..8f027da090 100644
--- a/wiretap/pcapng.h
+++ b/wiretap/pcapng.h
@@ -14,7 +14,7 @@
#include "ws_symbol_export.h"
#define PCAPNG_MAGIC 0x1A2B3C4D
-#define PCAPNG_SWAPPED_MAGIC 0xD4C3B2A1
+#define PCAPNG_SWAPPED_MAGIC 0x4D3C2B1A
#define PCAPNG_MAJOR_VERSION 1
#define PCAPNG_MINOR_VERSION 0