From: Daniel Borkmann <dborkman@redhat.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: Network Development <netdev@vger.kernel.org>
Subject: Re: netlink_deliver_tap is broken
Date: Tue, 12 Aug 2014 21:19:07 +0200 [thread overview]
Message-ID: <53EA68AB.6020700@redhat.com> (raw)
In-Reply-To: <36718D51-62DE-40B4-AE97-F82F3704597C@holtmann.org>
On 08/11/2014 11:38 PM, Marcel Holtmann wrote:
...
> the netlink tap functionality is not really usable. At least not from a nlmon perspective. It has three fundamental problems.
>
> a) Multicast netlink messages are not delivered to a registered tap when you do not have any member subscribed to the multicast group
>
> b) Multicast netlink messages are delivered multiple times when you have multiple clients subscribed to that multicast group.
The rationale so far I had in mind was that the tap only gets messages
that actually reach another socket/endpoint through netlink. Perhaps
analogous to non-promisc mode ... I think otherwise it's quite hard to
tell if a client actually got a message or not. E.g. it would for some
reason screw up the subscribe, and you could not tell if the netlink
skb actually landed validly in the receive queue. Perhaps we could make
a difference in that behaviour when nlmon is put into promisc mode?
> c) Unicast netlink messages are filtered out by the client socket filter meaning they never get to the tap
Do you mean BPF filter on the packet socket? What filter program do you
have attached and in what scenario?
next prev parent reply other threads:[~2014-08-12 19:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-11 21:38 netlink_deliver_tap is broken Marcel Holtmann
2014-08-12 19:19 ` Daniel Borkmann [this message]
2014-08-12 19:40 ` Marcel Holtmann
2014-08-12 22:03 ` Daniel Borkmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53EA68AB.6020700@redhat.com \
--to=dborkman@redhat.com \
--cc=marcel@holtmann.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).