[prev in list] [next in list] [prev in thread] [next in thread]
List: netbsd-tech-net
Subject: Re: Ethernet Input Processing
From: Michael Hertrick <m.hertrick () neovera ! com>
Date: 2003-11-18 21:02:12
[Download RAW message or body]
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.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic