lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Help Please: Interfacing a new ethernet driver


From: Maddala Subrahmanyam
Subject: [lwip-users] Help Please: Interfacing a new ethernet driver
Date: Tue, 5 Apr 2005 06:22:20 -0700 (PDT)

Hi All,
 
I'm a newbie trying to understand how to integrate a new ethernet driver with LwIP.
I have spent some time understanding LwIP by using the tun/tap interface using the 'chargen' application.
 
The way I understood the tun/tap communication is as follows:
 
Chargen application
          |
          v
      tapif.c
          |    --/dev/net/tap0
          v
       tun.c (tun/tap device driver)
 
 
I tried to implement the similar flow as follows:
 
  Chargen application
            |
            v
        xyzif.c  -- modified ethernetif.c to have xyz interface routines.
            |
            v
        xyz.c (ethernet driver )
 
But I have few problems here:
1. In the case of tun/tap driver, the driver exposes a /dev/net/tap0 character device node on which we do an open() and from there on we do read/write's over that fd.
I would appreciate if some one could give me few pointers on how to open the ethernet device
at xyzif.c
Since ethernet device no more exposes any device for "eth0", how can I get the device interface? So that I can follow the same logic to set IP, GW and subnet mask and bring up the
ethernet device.
 
Thanks in advance for your valuable suggestions,
-subbu.


Yahoo! Messenger
Show us what our next emoticon should look like. Join the fun.
reply via email to

[Prev in Thread] Current Thread [Next in Thread]