Closed chelmuth closed 12 years ago
i.ismagilov responded with
diff --git a/libports/src/lib/lwip/platform/sys_arch.cc b/libports/src/lib/lwip/platform/sys_arch.cc
index 8127e37..0b79d0c 100644
--- a/libports/src/lib/lwip/platform/sys_arch.cc
+++ b/libports/src/lib/lwip/platform/sys_arch.cc
@@ -192,6 +192,8 @@ extern "C" {
return 1;
#endif /* LWIP_DHCP */
}
+ else
+ netif_set_up(&netif);
} catch (Nic_not_availble) {
PWRN("NIC not available, set loopback as default");
netif_set_default(loopif);
@cnuke, @cproc, could you please review the fix? If you agree, I would like to include it into staging.
Any news here?
Can we close this bug?
EunSeok Kim reported on the mailing list:
I wanna setting the network card with static IP address in the Panda-Board environment. My Program is using lwip_nic_init() function of lwip library for network communication on the Panda-Board. We have been applied static IP address when we using the funtion. However it seems the function causes any problem in terms of network setting with usb_drv. ( It's only well done when we set loopback address to bind on server, with QEMU. It's put following message, when it's in other environment. "Could not connect!" )
Following is Server and Client source code of the my test program. Could you please know why this program is failed on Panda_Board.
Server Code
Client Code
run script of Server
run script of Client