summaryrefslogtreecommitdiff
path: root/cfilters
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-01-22 16:40:44 -0800
committerGuy Harris <guy@alum.mit.edu>2016-01-23 00:41:15 +0000
commit3d570b5a39f868209e4b38c43b0ba6bfefe8a9bf (patch)
treefc053ee8b2aff255c617f9793dee7518d6c57d30 /cfilters
parent9b8f5261f71f12f86ff2e2e5f28688a0a7ba4ffa (diff)
downloadwireshark-3d570b5a39f868209e4b38c43b0ba6bfefe8a9bf.tar.gz
Fix handling of the magic number.
Just treat it as an array of bytes. When checking for whether it's a pcap file, also determine whether it's big-endian or little-endian. Note that reading it in *host* byte order will tell you whether it's in your byte order or byte-swapped; you have to know your byte order to know whether that means little-endian or big-endian. Have a #define for the magic number size, as all magic number values must be that size, and use that as the size of the magic-number arrays. Handle nanosecond timestamp resolution while we're at it. Change-Id: I4d83579d919ae9f15888afca14317631d413ca51 Reviewed-on: https://code.wireshark.org/review/13490 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'cfilters')
0 files changed, 0 insertions, 0 deletions