Bill Auerbach wrote: >> From: Guido Moritz >> >> 1.I made it to bring DHCP up on my Board. But in which struct (to let >> the board tell me his IP via UART) can I get my IP from and let the >> board tell me the adress. > > You can get the IP address, Netmask and Gateway from the netif you're using > for the interface: e.g. netif->ip_addr
The proper API for this is: #include "lwip/api.h" struct netconn *conn; struct ip_addr addr; u16_t port; err_t err; err = netconn_addr(conn, &addr, &port); Jifl -- eCosCentric Limited http://www.eCosCentric.com/ The eCos experts Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571 Registered in England and Wales: Reg No 4422071. ------["Si fractum non sit, noli id reficere"]------ Opinions==mine _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
