Hi at all, I'M gonna try to change the ip of my device on runtime but it doesn't work. At the beginning my device (TI Concerto) has a static IP. The communication works well between PC and Concerto.
I initialize the interface with *lwIPInit(pucMACArray, ntohl(inet_addr(IPAddress)), ntohl(inet_addr(NetMask)), 0, IPADDR_USE_STATIC);* If a Message is received like *NEWIP 192.168.0.23* the Function "*ResettIP(char* octet0, char* octet1, char* octet2, char* octet3)*" will be called. In this Function I use *struct ip_addr newip, netmask, gateway; IP4_ADDR(&newip, octet0,octet1,octet2,octet3); IP4_ADDR(&netmask, 255,255,255,0); /*Fix at the moment*/ IP4_ADDR(&gateway, 192,168,0,1); /*Fix at the moment*/* *netif_set_addr(0, &newip , &netmask, &gateway);* to reconfigure the ipadress. Is there anything else to / more to do to communicate with the device via the new IP adress? Maybe someone can give me a simple code example. Thanks a lot Chris -- View this message in context: http://lwip.100.n7.nabble.com/Change-IP-on-Runtime-tp20670.html Sent from the lwip-users mailing list archive at Nabble.com. _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
