PingPong Example for the LWIP
Christian Helmuth
christian.helmuth at ...1...
Sat Mar 29 11:53:24 CET 2014
Hej,
On Wed, Mar 26, 2014 at 10:34:38PM +0100, Christian Prochaska wrote:
> When I just tried the test after commenting out these synchronization parts, the client showed the following error message:
>
> "[init -> nic_drv] could not configure /dev/net/tun: no virtual network emulation"
>
> This error message only occurred when the server was running, so it appears that it is not possible to have two instances of
> 'nic_drv' running at the same time on the same Linux host.
The issue is in os/src/drivers/nic/linux/main.cc:84
Genode::strncpy(ifr.ifr_name, "tap0", sizeof(ifr.ifr_name));
This means any instance of the base-linux nic_drv tries to configure
its tap device with name "tap0" which is denied by the Linux kernel.
We could add an optional config option for the tap-device name to
support scenarios with several instances of nic_drv on Linux.
Greets
--
Christian Helmuth
Genode Labs
http://www.genode-labs.com/ · http://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/
Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
More information about the users
mailing list