]> The Tcpdump Group git mirrors - libpcap/commit
linktype: add netlink link/dlt type
authorDaniel Borkmann <[email protected]>
Mon, 18 Nov 2013 23:39:37 +0000 (15:39 -0800)
committerGuy Harris <[email protected]>
Mon, 18 Nov 2013 23:39:37 +0000 (15:39 -0800)
commit23d2673796e60c7fea6ba218eb084cbd59e7271b
tree52a7c1a34b90431356baaa8821b44426f6ebb6fd
parent11031d0f71387161c282248cddc2fa0f7bf014ce
linktype: add netlink link/dlt type

With Linux 3.11, we have the possibility to debug local netlink traffic
[1] i.e.  the workflow looks like this:

Setup:
  modprobe nlmon
  ip link add type nlmon
  ip link set nlmon0 up

Capture:
  tcpdump -i nlmon0 ...

Teardown:
  ip link set nlmon0 down
  ip link del dev nlmon0
  rmmod nlmon

For pcap interoperability, introduce a common link type for netlink
captures.
pcap-common.c
pcap-linux.c
pcap/bpf.h