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
_______________________________________________ lwip-users mailing list lwip-...@nongnu.org http://lists.nongnu.org/mailman/listinfo/lwip-users
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
> >> ------------------------------------------------------------------------
- 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:
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
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
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