From owner-freebsd-questions Thu Feb 19 06:39:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA22900 for freebsd-questions-outgoing; Thu, 19 Feb 1998 06:39:37 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA22884 for ; Thu, 19 Feb 1998 06:39:26 -0800 (PST) (envelope-from nadav@barcode.co.il) Received: (from smap@localhost) by gatekeeper.barcode.co.il (8.8.7/8.8.7) id PAA17676; Thu, 19 Feb 1998 15:52:17 +0200 (IST) (envelope-from nadav@barcode.co.il) X-Authentication-Warning: gatekeeper.barcode.co.il: smap set sender to using -f Received: from localhost.barcode.co.il(127.0.0.1) by gatekeeper.barcode.co.il via smap (V2.0) id xma017674; Thu, 19 Feb 98 15:52:10 +0200 Message-ID: <34EC3AA6.562C@barcode.co.il> Date: Thu, 19 Feb 1998 15:59:02 +0200 From: Nadav Eiron X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.6 sun4u) MIME-Version: 1.0 To: Norman C Rice CC: jgrosch@superior.mooseriver.com, questions@FreeBSD.ORG Subject: Re: hostid equals Ethernet address or IP address ? References: <19980219004112.26662@mooseriver.com> <19980219084843.13569@emu.sourcee.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Norman C Rice wrote: > > On Thu, Feb 19, 1998 at 12:41:12AM -0800, Josef Grosch wrote: [snip] > > While I am not sure about supporting documents, I am pretty sure that > sethostid(3) is referring to the IP address, not the MAC address. My > reasoning is that IP addresses are 32-bits while MAC address are > 64-bits (the first 32-bits comprises the OUI which uniquely identifies > the vendor). My other thought is that if sethostid() actually rewrote > the MAC address (assuming it was implemented in FLASH, EEPROM, or some > other reprogrammable device) is that there would be no guarantee of > uniqueness. Reprogramming the MAC address would ``break'' many vendors > cards due to the steps they take to prevent this, e.g., embedded > CRC-32s, checksums, inverted MAC addresses, etc.. As stated in the man page, the function is deprecated anyhow, but just to comment on Norman Rice's answer: MAC addresses are 48 bit long, not 64 bit long, and there are indeed cases where they are reprogrammed. The most notable of these is DECnet Phase IV where the MAC address is reprogrammed to be the DECnet address (with some additions) as soon as DECnet is up and running. Most NICs will let you reprogram their MAC address temporarily, if you so wish. > > > > > > > Josef > > > > -- > > Josef Grosch | Another day closer to a | FreeBSD 2.2.5 > > jgrosch@MooseRiver.com | Micro$oft free world | UNIX for the masses > -- > Regards, > Norman C. Rice, Jr. Nadav To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message