netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* dhcp client packet sniffing...
@ 2010-04-08 10:50 David Miller
  2010-04-08 10:59 ` Neil Horman
  2010-04-08 11:47 ` Herbert Xu
  0 siblings, 2 replies; 12+ messages in thread
From: David Miller @ 2010-04-08 10:50 UTC (permalink / raw)
  To: netdev; +Cc: herbert


This is an old topic, but looking at traces tonight I was reminded
about it.

dhcp clients sniff every packet in the system, the reason it does this
and the things we can do to make it not have to do so have been
discussed before.  Actually, I don't remember where we got with
that and if we were able to make it such that the dhcp client
doesn't have to do this any more.  Herbert?

But, in any event, the fact of the matter is that currently it still
does on many machines.

This means every packet in the machine gets sniffed.

The DHCP client at least installs a socket filter that only accepts
the packets that the DHCP client is actually interested in.

The problem is that we clone the SKB and do some other operations
before running the socket filter.

I was thinking, what if we simply move the sk_filter() call up to
dev_queue_xmit_nit()?  And if sk_filter() rejects we don't even need
to clone the packet.

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

end of thread, other threads:[~2010-04-08 15:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-08 10:50 dhcp client packet sniffing David Miller
2010-04-08 10:59 ` Neil Horman
2010-04-08 11:01   ` David Miller
2010-04-08 11:47 ` Herbert Xu
2010-04-08 12:11   ` David Miller
2010-04-08 12:30     ` Herbert Xu
2010-04-08 12:49       ` Patrick McHardy
2010-04-08 13:12         ` Herbert Xu
2010-04-08 13:23           ` Patrick McHardy
2010-04-08 14:27   ` Herbert Xu
2010-04-08 14:37     ` Maxime Bizon
2010-04-08 15:07       ` Herbert Xu

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