Subject: Re: Calling ipf->if_input
To: Matthias Scheler <tron@zhadum.de>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: tech-net
Date: 11/30/1999 18:00:48
tron@zhadum.de said:
>     (*ifp->if_input)(ifp, m);
>     ifp->if_ipackets++; 

Right - the device driver has to count the packets.
The only reason I can imagine for it (instead of
counting within ether_input() -like if_ibytes-) is
to get ths packets passed to the packetfilter as well.
In this case however the ++ should be done a bit earlier
in the driver's receive handler - before the packetfilter
stuff.

best regards
Matthias