On Tue, 2005-11-29 at 11:35 +0100, Birahim Larou Fall wrote: > I use IP packets and arp also but at the low layer it's not an ethernet > interface but TX/RX. I will spend more time to undestund how IP stack is > interfaced with the network interface. If I find the entry point of the IP > stack, I will be able to replace the ethernet drivers (eth_drv.c and > harward driver) with my drivers.
'eth_drv.c' is not the hardware drivers - it's an interface between the stack and the physical driver. I think you can probably just write a "normal" network driver for your hardware and install it just like any other, regardless of the fact that it's not ethernet at the physical layer. The logical driver (eth_drv.c) only cares that your driver knows how to send and receive packets. > Thanks! > > > > Andrew Lunn <[EMAIL PROTECTED]> > Sent by: [EMAIL PROTECTED] > 29/11/2005 11:15 > > To > Birahim Larou Fall <[EMAIL PROTECTED]> > cc > Andrew Lunn <[EMAIL PROTECTED]>, eCos Discussion > <ecos-discuss@ecos.sourceware.org> > Subject > Re: [ECOS] Entry point of stack IP > > > > > > > On Tue, Nov 29, 2005 at 10:15:28AM +0100, Birahim Larou Fall wrote: > > It is more like PPP/SLIP. The device is a modem (DOCSIS) used on > numerical > > TV. Data are transmitted from/to host to/from to slave using DOCSIS > modem > > (TX/RX). The host and the slave have each one a MAC and IP ADRESS. > > If it has a MAC address then i sounds more like an ethernet than > PPP. Do you need ARP? Do you pass ethernet frames or IP packets? > > If your interface uses raw IP packets then it will plug in differently > than if it uses ethernet frames. > > Basicaly, you want to take a look at the ethernet infrastructure in > packages/io/eth/current/src/net/eth_drv.c which goes between the > ethernet drivers and the bottom of the stack, and packages/net/ppp and > look at how it interfaces to the stack. I also think you will need to > spend some time getting familiar with the network stack. > > Andrew > > -- > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > > > > -- Gary Thomas <[EMAIL PROTECTED]> -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss