lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] New to Lwip - seeking suggestions on how to proceed


From: Richard Shinn
Subject: [lwip-users] New to Lwip - seeking suggestions on how to proceed
Date: Tue, 19 Jul 2011 15:30:26 -0700

Hello,

 

I am new to Lwip and am trying to get the unixsim example code running. I can compile it and run it. However, when I do ‘ifconfig’ I see that the address of the tap0 device is 192.168.0.1 instead of 192.168.0.2 as described by the README and, indeed, as specified in the code:

 

IP4_ADDR(&gw, 192,168,0,1) 

IP4_ADDR(&ipaddr, 192,168,0,2)         from main() in simhost.c

 

I’m confused as to why the interface is coming up with 192.168.0.1 when it seems the code is setting it to 192.168.0.2

 

Also, I cannot ping 192.168.0.2 as described in the README.

 

My understanding of a tap interface is that it behaves, essentially, as a virtual Ethernet link connecting two ip addresses. So, with the above code, I would expect to see my local tap0 come up with 192.168.0.2 and be able to ping the virtual gateway at 192.168.0.1. In any case, I would expect to be able to ping both targets.

 

The README specifies that the tap interface must be enabled. I’m running the latest version of Fedora and I assume (though perhaps wrongly) that the tap interface is enabled since a pingable tap0 interface comes up with address 192.168.0.1. But, I haven’t been able to determine, for certain, whether the interface is, in fact, enabled. In any case, I see a /dev/net/tun file but do not see any tap devices under /dev. Does this mean that my interface is, in fact, not enabled?

 

I am trying to get a proof of concept up and running in which I run my companies security software on top of Lwip instead of the native stack. I’m guessing that the easiest way to do this would probably be to bring up the example code and then figure out how to modify it to run our code. Does this sound like a reasonable approach?

 

Thanks very much for the help.

 

Richard

 

Richard Shinn

Engineer

Mocana Corporation

350 Sansome St. Suite 1010

San Francisco, CA 94104

address@hidden

+1-415-617-0055 x3042

 

cid:image001.jpg@01CAE52A.F98831C0

 

Securing the Internet of Things
Request a free trial of Mocana's software at 
http://www.mocana.com/evaluate.html

Confidentiality Notice:  The information contained in this electronic transmission is confidential, and may be protected from disclosure under applicable law.  This transmission is intended only for the use of the individual to whom it is addressed.  If you are not the addressee, or the employee or agent responsible for delivering this transmission to the intended recipient, please notify us immediately by telephone at the telephone number above, and destroy this transmission in its entirety.  Any use, dissemination, review, distribution, disclosure, copying or taking of any action whatsoever in reliance upon or in connection with the contents of this transmission is strictly prohibited.

 

 


reply via email to

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