diff options
author | Dario Lombardo <lomato@gmail.com> | 2019-05-20 15:31:59 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2019-05-20 18:06:25 +0000 |
commit | 3e53ec5e11e141c37aa26b3472cc45bd4cdbfb0d (patch) | |
tree | 5a231fc680e4bc5f71a041561f3874aec0dcdb2b /writecap | |
parent | 6cfc25c40e4e8bbca34621e52c62935ecfafc63a (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 'writecap')
-rw-r--r-- | writecap/pcapio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/writecap/pcapio.c b/writecap/pcapio.c index 65148413fa..ef132f8538 100644 --- a/writecap/pcapio.c +++ b/writecap/pcapio.c @@ -87,7 +87,7 @@ struct pcaprec_hdr { * PCAPNG_SWAPPED_MAGIC is a byte-swapped version of that. */ #define PCAPNG_MAGIC 0x1A2B3C4D -#define PCAPNG_SWAPPED_MAGIC 0xD4C3B2A1 +#define PCAPNG_SWAPPED_MAGIC 0x4D3C2B1A /* Currently we are only supporting the initial version of the file format. */ |