diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2016-05-16 20:32:46 +0300 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-06-22 09:25:07 +0200 |
commit | 4bf0e7f3cf5d376747b3888a19c676655ff3ce39 (patch) | |
tree | 318d600f63b41c1010c85a310dcda14fa96b6733 | |
parent | 6f3886dcf06337eeb2a1f8cf72305778f7a95381 (diff) |
netsniff-ng: pcap_io: Print unsupported magic number
It might be more understandable to print unsupported
pcap magic number in hexadecimal format.
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | pcap_io.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -300,7 +300,7 @@ static inline void pcap_check_magic(uint32_t magic) break; default: - panic("This file has not a valid pcap header\n"); + panic("This file has an unsupported pcap magic number(0x%x)\n", magic); } } |