Subject: Re: Ethernet driver function
To: None <santanum@delhi.tcs.co.in>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: tech-kern
Date: 12/15/2000 20:52:04
In <01C066B0.023E79E0@NOKIA_26M>
santanum@delhi.tcs.co.in wrote:

> Currently I am going through the ethernet device drivers for
> NetBSD 1.4.1. Can anyone please tell me which is the function
> (and the C filename) that calls the ether_input() method
> (on arrival of an ethernet frame) in case of a 3Com 3C905 TX
> 10/100 ethernet interface (ex0). In other words I want to know
> the first kernel entry point method name which strips the ethernet header.

On 1.4.x, ether_input() is called from ex_intr() in sys/dev/ic/elinkxl.c
around line 1214. The ethernet header is stripped there.

On 1.5, it is called via (ifp->if_input)() from ex_intr(), and
it is initialized to ether_input() in ex_config() by calling
sys/net/if_ethersubr.c:ether_ifattach(). The ethernet header
is stripped in ether_input().
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp