> What I really meant with my suggestion was that if fred encounters two or > more, accrording to whatever filtering scheme used, valid IP addresses then > why can't it just have a check to see if one of those addresses are the one > currently in use and in that case continue using it. It is simply a matter > of adding another, possibly very simple, check before making the final > decision (which very well still might be to use the last encountered valid > IP) of which of the valid addresses to use.
Attached is a diff which would seem to do just this. When the node starts it will prefer to continue using any 'old' IP (in this case the old address is the one from the 'node' file) if it is still available accoring to the same detection scheme that is currently in place. Same thing happens during address detection checkpoints later on except that then the 'old' IP will be the previously detected one. Tell me if there is something wrong with the diff (or the code), it is the first one I have ever created. Oh, and another thing, I indented some sections of the code when I happened to edit in that area. /N -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: diff.txt URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20030529/64c063ac/attachment.txt>
