Attached, a patch to remove the lastsync PC dependency on the host's IP. This should solve a problem where hosts with changing IPs (DHCP and so on) are forced to do a slow sync with the PDA after the IP changes. Naturally, it also allows fast-syncs against multiple machines, if the state is copied between the machines before the sync (via some external file-syncing utility). Details: the last PC is stored in ~/.palm/lastsync, and is incremented with each sucessful sync. If this file is missing, a random 32-bit number is used. As was done previously, a mismatch in the ID will force a slow sync. Once the ~/.palm hierarchy is copied from one host to another, so is the file lastsync, and subsequent syncs in either the copier or copyee will be fast. I tested this in both standalone and daemon modes. Systems tested on are RedHat Linux, and FreeBSD 4.4-PRERELEASE. This patch is against the 2.1.2 sources.
coldsync-2.1.2-lastsyncid.diff