There are only a few points in which you have to integrate, all of which are covered in the ethernetif.c code template.
Basically, 1.) Implement a link_output(), which sends a chunk of data to the driver to be sent. 2.) Add in a call to ip_input() in your receive ISR, or hardware polling process. There are also a number of other additional points that need to be taken care of, but I believe the code template pretty much takes care of those. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of ??? > Sent: Monday, March 05, 2007 7:56 PM > To: Mailing list for lwIP users > Subject: Re: [lwip-users] How to use Lwip with ethernet in Linux > > The embedded system's network chip is "DM9000", and i had the driver for > it. > How should I do to hook thoese into lwip. > I think I maybe need to modify ethernetif.c, > but i don't know what codes should be written inside ethernetif.c and what > codes should be written inside network driver. > > Best regrad, > > Adolf Liu > > >> Thanks for your response, > >> I had been success running unixsim, and tested all of it's > instructions. > >> Now my question is that if I can run my program go throgh default > >> ethernet > >> interface(like eth0) without passing tun/tap. > >> Or I can only communicate network interface by tun/tap. > >> Because I will port Lwip to a embedded system running uLinux. > > > > Ahh, OK. This is not a simple task - you need to write or obtain > > drivers for your hardware, then hook those into lwIP. This is more than > > I can help you do as it would require detailed knowledge of what > > hardware you're running. If you can tell use what hardware you're using > > you may find there is someone on this list who can help though (and may > > even have done the same thing). > > > > Kieran > > > > > _______________________________________________ > lwip-users mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/lwip-users _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
