From owner-freebsd-questions Thu Feb 19 06:57:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA25880 for freebsd-questions-outgoing; Thu, 19 Feb 1998 06:57:33 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from emu.sourcee.com (emu.sourcee.com [199.201.159.173]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA25842 for ; Thu, 19 Feb 1998 06:57:27 -0800 (PST) (envelope-from nrice@emu.sourcee.com) Received: (from nrice@localhost) by emu.sourcee.com (8.8.8/8.8.3) id JAA06412; Thu, 19 Feb 1998 09:57:03 -0500 (EST) Message-ID: <19980219095703.59598@emu.sourcee.com> Date: Thu, 19 Feb 1998 09:57:03 -0500 From: Norman C Rice To: Nadav Eiron 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> <34EC3AA6.562C@barcode.co.il> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: <34EC3AA6.562C@barcode.co.il>; from Nadav Eiron on Thu, Feb 19, 1998 at 03:59:02PM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Feb 19, 1998 at 03:59:02PM +0200, Nadav Eiron wrote: > 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 Duh. You're right -- 6 bytes is definitely 48 bits. Thanks for making the correction. I should also point out that my ``generous'' byte-to-bit conversion on the 3 byte OUI was also incorrect; I should have reported that the OUI is the first 24 bits of the MAC address. > 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. While most NICs use reprogrammable logic, most of them do use proprietary techniques to ensure that the end user cannot easily change the MAC address. If the card manufacturer provides the update algorithm, then this issue is moot. However, it is not a temporary change as the logic is non-volatile; the old MAC address would have to be explicitly reprogrammed. I would like to point out that FLASH and EEPROM devices ``wear out'' after 10,000 to 1,000,000 programming cycles -- actually their write cycle times become so excessive they no longer work with the surrounding circuitry. I find it hard to believe that NIC manufacturers would allow end users to freely change the MACs, especially the OUI portion. There would be no guarantee of uniqueness and I am sure that a new sport, ``MAC spoofing'', would soon be taken up by the crackers. > > > > > > > > > > > > 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 -- Regards, Norman C. Rice, Jr. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message