netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* netlink_deliver_tap is broken
@ 2014-08-11 21:38 Marcel Holtmann
  2014-08-12 19:19 ` Daniel Borkmann
  0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2014-08-11 21:38 UTC (permalink / raw)
  To: Daniel Borkmann; +Cc: Network Development

Hi Daniel,

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.

c) Unicast netlink messages are filtered out by the client socket filter meaning they never get to the tap

I think all 3 need to be actually fixed to have nlmon being useful for netlink tracing. I did a simple approach by moving netlink_deliver_tap into the actual right places before the filters. However that does not seems to work since it causes sleeping in wrong context.

You might want to have a look at it to make nlmon actually functional complete and not depending on some external multicast membership or socket filters.

Regards

Marcel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-08-12 22:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-11 21:38 netlink_deliver_tap is broken Marcel Holtmann
2014-08-12 19:19 ` Daniel Borkmann
2014-08-12 19:40   ` Marcel Holtmann
2014-08-12 22:03     ` Daniel Borkmann

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).