[Top] [All Lists]

Re: Best way to hook incoming eth pkts?

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: Re: Best way to hook incoming eth pkts?
From: Jeff Garzik <jgarzik@xxxxxxxxx>
Date: Wed, 20 Aug 2003 14:15:12 -0400
Cc: mcr@xxxxxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <20030820105437.73dc86db.davem@xxxxxxxxxx>
References: <20030820154727.GB9119@xxxxxxx> <6756.1061401768@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20030820175929.GD23984@xxxxxxx> <20030820105437.73dc86db.davem@xxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.3.28i
On Wed, Aug 20, 2003 at 10:54:37AM -0700, David S. Miller wrote:
> On Wed, 20 Aug 2003 13:59:29 -0400
> Jeff Garzik <jgarzik@xxxxxxxxx> wrote:
> > On Wed, Aug 20, 2003 at 01:49:28PM -0400, Michael Richardson wrote:
> > >   For ethernet protocols, you can just register the protocol handler, and 
> > > you
> > > will get them.
> > 
> > Dumb question:  how?  example code, or relevant functions to grep for?
> He's talking about net/core/dev.c:dev_add_pack()

Thanks much.

Tangent, from reading dev.c:  Is it ok that dev_queue_xmit_nit does not
check the return value of struct packet_type's ->func hook?  It seems to
do so in all other cases...


<Prev in Thread] Current Thread [Next in Thread>