pcap_io: add cooked mode support
commit12c6a61fa54a2ee6a28c04ff51b2456f73d499b9
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 18 Jun 2015 22:30:31 +0000 (19 00:30 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 19 Jun 2015 22:17:37 +0000 (20 00:17 +0200)
treed14825e9743e1a9bf5b9f82801908995d97632e6
parent15801106bd8ddbccd4125e8fe5d146cb908107ab
pcap_io: add cooked mode support

Originally submitted by Vadim in a different form, he wrote:

  Use Linux "cooked" header for Netlink interface automatically or
  as replacement of L2 header if "--cooked" option is specified:

    http://www.tcpdump.org/linktypes/LINKTYPE_LINUX_SLL.html

  'Cooked headers' makes sense to use for default or nsec pcap
  types which does not contain protocol info.

  Added new LINKTYPE_LINUX_SLL which indicates pcap file with
  Linux "cooked" header as L2 layer header. This pcap file is
  compatible with Wireshark's "cooked" header & vice-versa.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
netsniff-ng.c
pcap_io.h