[BusyBox] Lease remembering in udhcpc?
rob at landley.net
Mon Aug 22 03:10:28 UTC 2005
On Sunday 21 August 2005 05:08, wrote:
> - Every time a lease is received, write it into a cache file.
> - When the server can't be reached, read in the cache file reuse the
> stored lease if it is still valid.
> This would fix both cases above.
Sounds cool. Just remember to keep the size down. (And if it looks like
you're going to add more than about 50 bytes or so to the binary, thinking
about adding a config option to make the new behavior compile-time
selectable. Some embedded systems don't have persistent storage in their
writable filesystems, they lose everything on a reboot anyway...)
When you've got something for us to look at, send a standard diff -u patch to
this list. (The udhcp stuff is a bit weird because the maintainer of that
applet also has it as an external standalone project, but keeping the two in
sync is his problem...)
More information about the busybox