Subject: Re: Ethernet Input Processing
To: None <tech-net@netbsd.org>
From: Michael Hertrick <m.hertrick@neovera.com>
List: tech-net
Date: 11/18/2003 16:02:12
Allen Briggs wrote:

>On Tue, Nov 18, 2003 at 12:45:55AM -0500, Michael Hertrick wrote:
>  
>
>>http://www.netbsd.org/Documentation/kernel/porting-freebsd-net.html says 
>>"NetBSD: whole packet, indirectly through ifp->ifp_input", but I can't 
>>find ifp_input used anywhere either.
>>    
>>
>
>At the end of fxp_rxintr in i82557.c, you'll note the line:
>
>                (*ifp->if_input)(ifp, m);
>
>(just after the conditional call to bpf_mtap())
>
>That's what you're looking for, I think.
>
>Are you in promiscuous mode?  If not, then the packets won't even be
>picked up--the chip will not even try to pick up those packets.
>  
>
Yes, ifconfig shows PROMISC for the interfaces.  I neglected to mention 
before that I already know the packets are being picked up... I get a 
response when I ping the virtual host, but I get a duplicate response as 
well... from the host in the backup state.

That call is what I was looking for... from what I understand now, 
ifp->if_input is set to ether_input in ether_ifattach, so essentially 
the driver does call ether_input.  Hi ho, hi ho, back to the drawing 
board I go.

Thanks,
~Mike.