lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] unix port: simrouter SIOCADDRT: No such device


From: Friedrico
Subject: [lwip-users] unix port: simrouter SIOCADDRT: No such device
Date: Sat, 07 Jun 2014 16:46:15 +0200
User-agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Hello

I'm using lwip 1.4.1 and the linux port.
First of all the make complains about c++ style comments due to the "-Werror" in the Makefile. Is that really intended or did I just something wrong?
Nevertheless, after removing that it compiles fine.

The actual problem is that I can't get simrouter/simnode working.

sudo ./simrouter
System initialized.
Now run ./simnode # which do, then:
SIOCADDRT: No such device
SIOCADDRT: No such device
Applications started
TCP/IP initialized


The SIOCADDRT happen because of the routes (simrouter.c:tcpip_init_done)
system("route add 192.168.1.1 192.168.0.2");
system("route add 192.168.1.2 192.168.0.2");

What is wrong?
At this point of time my netif_list[0] contains the device with the IP "192.168.1.1", netif_list[1] is uninitialized but shouldn't it also contain the "192.168.0.1" tap0-netif?

Regards,
Friedrico



reply via email to

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