I've written an ip changing function for my telnet connection -
functionality should be this:
> ip 192.168.0.1
Closing connection, please reconnect to: 192.168.0.1
Connection to host lost
however, I can't think of an elegant way of calling uip_sethostaddr(),
because an minimum of 4 extra packets need to be exchanged (FIN, ACK
etc). I'm assuming uIP doesn't have a shutdown function that ends any
current connections, and then stops replying? If I call
uip_sethostaddr() directly, the connection is not closed cleanly because
uip_hostaddr is changed prematurely.
Any ideas, anyone?
Tolly
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.1/440 - Release Date: 06/09/2006