Subject: Re: [patch net-next v2] nlmon: use standard rtnetlink link api for add/del devices

From: Daniel Borkmann <[email-masked]>
Date: Tue, 16 Jul 2013 16:49:53 +0200

On 07/16/2013 04:08 PM, Vladimir Kondratiev wrote:
> Jiri Pirko <jiri <at> resnulli.us> writes:
>
>> It is not nice when netdev is created right after module load and with
>> some implicit name. So rather change nlmon to use standard rtnl link API.
>
> Could you please elaborate a bit - how to capture netlink skb's after your
> patch? Before, it was netdev that may be used with tcpdump. Now, there is
> no such netdev. How to create it?

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

tcpdump -i nlmon0 ....

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