diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-07-23 13:15:49 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-07-23 13:15:49 +0200 |
commit | ab84e1e6491030806cd771939d445f3c9e9bacfe (patch) | |
tree | ff1feec4b67a088396e599e69659ad1aff48b832 /pcap_io.h | |
parent | 57e04d5a77cc9541ad8dcb81a134644ed2a640be (diff) |
pcap_io: tun: support captures from wireshark/tcpdump via tun devices
101-103 do not have official link types and seem to be non-portable.
Just add them so that we can replay pcap's of such types as well.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'pcap_io.h')
-rw-r--r-- | pcap_io.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -632,6 +632,8 @@ static inline void pcap_prepare_header(struct pcap_filehdr *hdr, uint32_t magic, } static const bool pcap_supported_linktypes[LINKTYPE_MAX] __maybe_unused = { + /* tunX captures from wireshark/tcpdump, non-portable */ + [101] = true, [102] = true, [103] = true, [LINKTYPE_NULL] = true, [LINKTYPE_EN10MB] = true, [LINKTYPE_EN3MB] = true, |