Subject: 64 bit hostid
To: NetBSD Kernel list <tech-kern@netbsd.org>
From: Al Snell <alaric@alaric-snell.com>
List: tech-kern
Date: 01/03/2001 02:09:55
My kernel patches are viewable at:
love.warhead.org.uk/~alaric/hostid_64.tar.gz
You'll need to copy the resulting sys/sysctl.h into /usr/include as well
and rebuild sysctl(8) if you want o actually do anything.
I have yet to update the libc get/set hostid() functions, or rtsold.
I will also need to write a ?"hostid" tool to go with "hostname" and
"domainname".
Suggested interface:
hostid with no arguments dumps the host ID as a string of 16 hex digits
hostid <16 hex digits> sets the host ID directly
hostid -m <interface> set the host ID from the intercace's MAC address, as
defined by EUI64
hostid -h sets the host ID from the MD5 of the hostname, with the
appropriate bits set to make it a valid EUI64locally-allocated address.
hostid -f shows the status of the two EUI64 flag bits in the host id -
"global/local" and "group/individual" - ina readable manner.
ABS