diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2014-03-11 15:12:26 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2014-03-11 15:12:26 +0100 |
commit | 632e1a699e5d1d3edb822b8f55c0b55b9c7e161e (patch) | |
tree | 36dc1d9856fee27050eec85135d7568f51b41893 /proto_ipv6_no_nxt_hdr.c | |
parent | e1af615aca2fa6e5927645eaa944db6fa89f61a4 (diff) |
pcap_io: Only check byteswapped linktype if pcap magic is swapped
In pcap_validate_header() the linktype and the byte-swapped linktype are
currently checked against the supported linktypes. Since the swapped
linktype is always larger than LINKTYPE_MAX, only one of the two tests
was actually done. Make this intention a bit more clear by explicitly
checking only for either the swapped or non-swapped linktype, depending
on whether the pcap magic is swapped.
Also make the error messages a bit more verbose regarding the
major/minor version.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'proto_ipv6_no_nxt_hdr.c')
0 files changed, 0 insertions, 0 deletions