Wireshark-commits: [Wireshark-commits] master-3.0 bfd3bb2: pcapng: fix the magic when bytes are swa
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=bfd3bb2ee78aaaa977da9c09282e76b704e340de
Submitter: "Peter Wu <peter@xxxxxxxxxxxxx>"
Changed: branch: master-3.0
Repository: wireshark
Commits:
bfd3bb2 by Dario Lombardo (lomato@xxxxxxxxx):
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@xxxxxxxxxxxxx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
(cherry picked from commit 3e53ec5e11e141c37aa26b3472cc45bd4cdbfb0d)
Reviewed-on: https://code.wireshark.org/review/33289
Petri-Dish: Dario Lombardo <lomato@xxxxxxxxx>
Actions performed:
from 61284f2 Fix format_uri().
add bfd3bb2 pcapng: fix the magic when bytes are swapped.
Summary of changes:
wiretap/pcapng.h | 2 +-
writecap/pcapio.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)