Article View: comp.sys.dec
Article #2727Re: Help : Copy protection
From: Marcus J. "Buddy can you spare a...
Date: Sat, 10 Oct 1992 21:10
Date: Sat, 10 Oct 1992 21:10
29 lines
1740 bytes
1740 bytes
>I tried to use the Ethernet address (i.e. 8:0:2b:24:42:55) of the >ethernet interface card (the address is unique) but I coulnd't find a >way to get it by software. You sure can get it via software - but it's not really likely to always be unique. If you really want copy protection, you need to use a dongle or something like that. Of course, everyone will hate you if you do, and loads of people like myself will refuse to buy your product if it's copy protected... mjr. PS - struct ifdevea hw_addr; s = socket (AF_INET, SOCK_DGRAM, 0); strcpy (&hw_addr.ifr_name [0], "ln0"); ioctl(s, SIOCRPHYSADDR, (caddr_t) &hw_addr); What gets tricky is figuring ot what device to check. If the machine has more than one device, do you pick the first? Or do you always use ln0? Also, some systems allow you to change the apparent ethernet address... Remember - the kernel is just software. -- It is important to focus on writing software that is "adequate." Having one's software be "good" or even "excellent" is over-rated. If "good" were necessary or even important, DOS would not be the de facto standard operating system. -notebooks of a heretic
Technical Details
Message-ID:
<1992Oct10.211041.5763@decuac.dec.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!decwrl!pa.dec.com!decuac!hussar.dco.dec.com!mjrReferences:
<1992Oct9.230142.10781@tolten.puc.cl>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.dec Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!pa.dec.com!decuac!hussar.dco.dec.com!mjr From: mjr@hussar.dco.dec.com (Marcus J. "Buddy can you spare a clue?" Ranum) Subject: Re: Help : Copy protection Message-ID: <1992Oct10.211041.5763@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: <1992Oct9.230142.10781@tolten.puc.cl> Date: Sat, 10 Oct 1992 21:10:41 GMT Lines: 29