[lwip-users] Running Linux port of lwip

498 views
Skip to first unread message

Alain M.

unread,
Dec 2, 2008, 8:44:16 PM12/2/08
to lwip-...@nongnu.org
I am just getting started in lwip :) (although I have been reading this list for a few months)

I downloaded 1.3.0 and could compile simhost but it does not work with tap0.

1) tap0 is running for dosemu and qemu on my machine
2) nothing gets to tap0, monitored by wireshark (etherreal)
3) with debug I get this log:

tapif_init: fd 3
tapif_init: system("/sbin/ifconfig tap0 inet 10.0.0.2");
netif: added interface tp IP addr 10.0.0.37 netmask 255.255.255.0 gw 10.0.0.2
netif: setting default interface tp


But this sets my tap0 to the ip of my gateway and brings my network down :(

Searching a lot, I found this thread: http://www.nabble.com/-FW-LwIP-for-win32-port-td16975141.html
the problem is very similar, but it was not solved.

Please help...
Alain

Alain M.

unread,
Dec 2, 2008, 8:47:39 PM12/2/08
to Mailing list for lwIP users
Sorry, correcting the link bellow...

Alain M. escreveu:
I am just getting started in lwip :) (although I have been reading this list for a few months)

I downloaded 1.3.0 and could compile simhost but it does not work with tap0.

1) tap0 is running for dosemu and qemu on my machine
2) nothing gets to tap0, monitored by wireshark (etherreal)
3) with debug I get this log:

tapif_init: fd 3
tapif_init: system("/sbin/ifconfig tap0 inet 10.0.0.2");
netif: added interface tp IP addr 10.0.0.37 netmask 255.255.255.0 gw 10.0.0.2
netif: setting default interface tp


But this sets my tap0 to the ip of my gateway and brings my network down :(


the problem is very similar, but it was not solved.

Please help...
Alain

_______________________________________________ lwip-users mailing list lwip-...@nongnu.org http://lists.nongnu.org/mailman/listinfo/lwip-users

Alain M.

unread,
Dec 4, 2008, 12:51:41 PM12/4/08
to Mailing list for lwIP users
Please, is there anyone using (or has used) Linux port of lwIP ???

Alain

Micael

unread,
Dec 4, 2008, 5:16:16 PM12/4/08
to lwip-...@nongnu.org
On Thursday 04 December 2008 18.51.41 Alain M. wrote:
> Please, is there anyone using (or has used) Linux port of lwIP ???

I am 'using' it. I.e. I have tried it a few days ago, but I had no problem
what so ever, and being a lwip newbie, I probably can't help much. The only
thing I found out, was that I had to run it as root, as the tun/tap interface
does not support normal users.
Apart from this, the web page example, and ping was running fine.

Can you perhaps try to stop dosemu/qemu?

Micael

>
> Alain
>
> > Alain M. escreveu:
> >> I am just getting started in lwip :) (although I have been reading
> >> this list for a few months)
> >>
> >> I downloaded 1.3.0 and could compile simhost but it does not work
> >> with tap0.
> >>
> >> 1) tap0 is running for dosemu and qemu on my machine
> >> 2) nothing gets to tap0, monitored by wireshark (etherreal)
> >> 3) with debug I get this log:
> >>

> >> *tapif_init: fd 3


> >> tapif_init: system("/sbin/ifconfig tap0 inet 10.0.0.2");
> >> netif: added interface tp IP addr 10.0.0.37 netmask 255.255.255.0 gw
> >> 10.0.0.2

> >> netif: setting default interface tp*


> >>
> >> But this sets my tap0 to the ip of my gateway and brings my network
> >> down :(
> >>
> >> Searching a lot, I found this
> >>
thread:http://www.nabble.com/reading-and-writing-to-the-ethernet,-unix-port-td6131222.html
> >> the problem is very similar, but it was not solved.
> >>
> >> Please help...
> >> Alain

> >> ------------------------------------------------------------------------

sandy tewari

unread,
Dec 4, 2008, 5:20:48 PM12/4/08
to Mailing list for lwIP users
I am new too.  yes simhost basic works with root access. But it doesnt work totally. u will have to modify to make all the features work.
I am stuck somewhere too. I am trying to use LWIP stream socket apis, but im failing in connect.

-Sandy


From: Micael <m8...@abc.se>
To: lwip-...@nongnu.org
Sent: Thursday, December 4, 2008 4:16:16 PM
Subject: Re: [lwip-users] Running Linux port of lwip

Alain M.

unread,
Dec 4, 2008, 7:46:16 PM12/4/08
to Mailing list for lwIP users
Can you please send me:

- version of lwip (I am using 1.3.0)

- What commands you used to start tap0? and what distro/release? I mignt
just have some problem there.

Thanks,
Alain

Micael escreveu:

Alain M.

unread,
Dec 4, 2008, 7:48:31 PM12/4/08
to Mailing list for lwIP users

sandy tewari escreveu:


> I am new too. yes simhost basic works with root access. But it doesnt
> work totally. u will have to modify to make all the features work.

It would be very nice it you can send a patch (or even files or
annotations) so that we can fix it in a newer release..

Who is the mantainer of the contribs?

> I am stuck somewhere too. I am trying to use LWIP stream socket apis,
> but im failing in connect.

good luck :)
Alain

Micael

unread,
Dec 5, 2008, 3:45:00 AM12/5/08
to Mailing list for lwIP users

I am using the cvs HEAD on a 64 bit box. I haven't tested 1.3 release,
since there where some 64 bit fixes done after it's release.
Distro Gentoo, and no special start/stop of tun/tap. (just made sure they
compiled in to the kernel).

Session output looks like this;

# ./simhost
Host at 192.168.0.2 mask 255.255.255.0 gateway 192.168.0.1
System initialized.
TCP/IP initialized.
Applications started.

.. and all is well!

- Micael


- Micke

Kieran Mansley

unread,
Dec 5, 2008, 4:24:52 AM12/5/08
to Mailing list for lwIP users
On Thu, 2008-12-04 at 22:48 -0200, Alain M. wrote:
> Who is the mantainer of the contribs?

Different bits are maintained by different people. I'm the nominal
maintainer for the unix port, but I don't use it on a regular basis and
so was hoping that others who do would be of more help.

If you didn't already have other things using tun/tap I'd suspect a
problem there.

I think the most likely issue is one of network configuration. i.e.
You've got a problem with different IP addresses, netmasks, etc. Can
you describe the network topology you have configured with all the
different interfaces? I'm assuming you have other tap interfaces for
qemu etc.

Thanks

Kieran

Reply all
Reply to author
Forward
0 new messages