Hi Glenn, Easiest thing to do would probably be to use functions like:
void netif_set_ipaddr(struct netif *netif, struct ip_addr *ipaddr) void netif_set_gw(struct netif *netif, struct ip_addr *gw) void netif_set_netmask(struct netif *netif, struct ip_addr *netmask) Defined in: XPS_iBOB_base/ppc405_1/libsrc/lwip_v2_00_a/src/lwip/src/core/netif.c with the interface default_netif, as initialized in lwip_init.c We thought about doing this awhile ago but never got around to it. I think there's an extant 'ifconfig' tinysh command that could be modified a bit to use the usual syntax for setting ip, netmask, gw, etc.. - Andrew On 7/12/08 1:34 PM, "G Jones" <[email protected]> wrote: > Hello, > I'd like to add a command to the iBOB to allow setting the LWIP IP > address from tinysh. I'm thinking about a simple command that sets up > the ip[4] array and then calls lwipinit. My question is, will lwipinit > have problems with being called multiple times? Do things like > netif_init, tcp_init, and udp_init malloc stuff that needs to be > freed? Are there convenience functions for doing so? > Thanks, > Glenn >

