Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: mjr@hussar.dco.dec.com (Marcus J. "Buddy can you spare a clue?" Ranum)
Subject: Re: Help : Copy protection
Date: Sat, 10 Oct 1992 21:10:41 GMT	[thread overview]
Message-ID: <1992Oct10.211041.5763@decuac.dec.com> (raw)
In-Reply-To: 1992Oct9.230142.10781@tolten.puc.cl

>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


  reply	other threads:[~1992-10-10 21:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-10-09 23:01 Help : Copy protection Pablo Pfingsthorn, MN
1992-10-10 21:10 ` Marcus J. "Buddy can you spare a clue?" Ranum [this message]
1992-10-13  0:22   ` jeh
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox