> I submit to you that the inspriation for 'hostid' on Linux > comes from 'hostid' on Solaris, which does NOT report something > tied to the IP address (as gethostid() would). I further submit
Its way older than Solaris > that 'hostid' on Linux does not necessarily report something > tied to the IP address but rather something it gets from /etc/hostid. The Linux rule is as documented in info libc - /etc/hostid first if not then the ip algorithm is used > The CPU serial number in Sun land appears to be a 32-bit value. Its actually from NvRAM on sun systems I used. If you know what you are doing you can change it, because the protection system is trivial and also sun apparently have published it in error before now. > 1) you retool it to report something derived from the CPU ID, and > 2) you take into account the vendor (to avoid collisions where > both Sun and IBM happen to report CPU ID "12345"). You have to be very careful how its used, and its normally convenient to be able to override it. You can write a tiny app to grab the IBM cpu id hack it up a bit and dump it in hostid if you want > Dead horse? No thanks, I've already eaten Alan
