From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,4af82ff335390ac6 X-Google-Attributes: gid1164f8,public X-Google-Thread: 10b612,4af82ff335390ac6 X-Google-Attributes: gid10b612,public X-Google-ArrivalTime: 1992-07-03 08:43:42 PST Xref: sparky comp.unix.ultrix:5436 comp.sys.dec:3875 Newsgroups: comp.unix.ultrix,comp.sys.dec Path: sparky!uunet!haven.umd.edu!decuac!hussar.dco.dec.com!mjr From: mjr@hussar.dco.dec.com (Marcus J. "will do TCP/IP for food" Ranum) Subject: Re: unique identification of DECStation Message-ID: <1992Jul3.204840.26318@decuac.dec.com> Sender: news@decuac.dec.com (USENET News System) Nntp-Posting-Host: hussar.dco.dec.com Organization: Digital Equipment Corporation, Washington ULTRIX Resource Center References: <1992Jul2.222051.27703@slc.com> Date: Fri, 3 Jul 1992 20:48:40 GMT >The existing method involves the extraction of the ethernet address >from an ethernet device, but this has the drawback of requiring >knowledge of all supported device types (ln?, xn? etc.). You also need to consider that the ethernet address can be changed - it is not immutable. Also a your copy protection scheme be careful not to use the first configured network interface, since it might be a ci connect. >Can anyone tell me if there is a neat way of extracting some hardware >bound identification? Not really. You have to do the usual: if (ioctl(s, SIOCRPHYSADDR, (caddr_t) &hw_addr) < 0) { It gets ugly in a hurry, since if you just pick the first you can get hosed by ci connections or hosts with multiple ether cards. I imagine if I wanted to get around a copy protect it'd take about an hour to write a network device that didn't actually do anything but have a predeterimined ethernet number... mjr.