Re: mac address from nic
From: Dances With Crows (danSPANceswitTRAPhcrows_at_gmail.com)
Date: 04/13/05
- Next message: cade.robinson_at_gmail.com: "HP DL380 / SLES 8 and cpu usage bug?"
- Previous message: Måns Rullgård: "Re: mac address from nic"
- In reply to: Måns Rullgård: "Re: mac address from nic"
- Next in thread: Moe Trin: "Re: mac address from nic"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 13 Apr 2005 10:35:32 -0500
On Wed, 13 Apr 2005 16:48:56 +0200, Måns Rullgård staggered into the
Black Sun and said:
> "Martin" <martin.lavergne@elytra.com> writes:
>> Would anyone have ideas how to query a PCI NIC for its MAC address
>> directly?
> ioctl(sock, SIOCGIFADDR, ...);
This may not be as "direct" as the OP wants, but it's the standard way
to get a MAC address from a NIC under Linux. The only more direct way
involves poking the bits directly from the NIC module. Martin, you do
*not* want to go there; there are over 100 NICs that are supported by
Linux and they all have the relevant code in their modules already.
>> To be done is such a way that it cannot be spoofed?
> Impossible.
Not impossible; just insanely difficult and probably not worth it.
> Are you trying to create some kind of license enforcement
> scheme?
His motivations were never specified. I think Martin has just not
given the problem enough thought.
> Give up. All you can accomplish there, is to irritate your honest
> customers, and delay the pirates a few minutes.
Aye.
-- Matt G|There is no Darkness in Eternity/But only Light too dim for us to see Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong http://www.brainbench.com / Hire me! -----------------------------/ http://crow202.dyndns.org/~mhgraham/resume
- Next message: cade.robinson_at_gmail.com: "HP DL380 / SLES 8 and cpu usage bug?"
- Previous message: Måns Rullgård: "Re: mac address from nic"
- In reply to: Måns Rullgård: "Re: mac address from nic"
- Next in thread: Moe Trin: "Re: mac address from nic"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|