Re: Get physical MAC address

2008-01-02 Thread Bernd Petrovitsch
On Die, 2008-01-01 at 22:58 -0600, Matt Domsch wrote: > On Mon, Dec 31, 2007 at 12:39:11PM +0700, Theewara Vorakosit wrote: > > Hello, > > > > I get MAC address from ioctl. However, ifconfig can change this MAC > > address. Can I get a real physical MAC address of the NIC? > > yes. It's ETHTOO

Re: Get physical MAC address

2008-01-01 Thread Matt Domsch
On Mon, Dec 31, 2007 at 12:39:11PM +0700, Theewara Vorakosit wrote: > Hello, > > I get MAC address from ioctl. However, ifconfig can change this MAC > address. Can I get a real physical MAC address of the NIC? yes. It's ETHTOOL_GPERMADDR to the ethtool ioctl. case ETHTOOL_GPERMADDR:

Re: Get physical MAC address

2008-01-01 Thread Kyle Moffett
On Jan 01, 2008, at 21:42:18, Jon Masters wrote: On Mon, 2007-12-31 at 12:39 +0700, Theewara Vorakosit wrote: I get MAC address from ioctl. However, ifconfig can change this MAC address. Can I get a real physical MAC address of the NIC? Forgive me reading into your mail...this smells a bit l

Re: Get physical MAC address

2008-01-01 Thread Jon Masters
On Mon, 2007-12-31 at 12:39 +0700, Theewara Vorakosit wrote: > I get MAC address from ioctl. However, ifconfig can change this MAC > address. Can I get a real physical MAC address of the NIC? Forgive me reading into your mail...this smells a bit like some kind of licensing/compliance thing. Jus

Re: Get physical MAC address

2008-01-01 Thread Stephen Hemminger
On Wed, 02 Jan 2008 00:07:28 +0100 Bernd Petrovitsch <[EMAIL PROTECTED]> wrote: > On Mon, 2007-12-31 at 12:39 +0700, Theewara Vorakosit wrote: > [...] > > I get MAC address from ioctl. However, ifconfig can change this MAC > > address. Can I get a real physical MAC address of the NIC? > > - You

Re: Get physical MAC address

2008-01-01 Thread Bernd Petrovitsch
On Mon, 2007-12-31 at 12:39 +0700, Theewara Vorakosit wrote: [...] > I get MAC address from ioctl. However, ifconfig can change this MAC > address. Can I get a real physical MAC address of the NIC? - You can get the initial MAC address right after bootup before anyone changes it. - Some (if no

Re: Get physical MAC address

2007-12-31 Thread Bodo Eggert
Theewara Vorakosit <[EMAIL PROTECTED]> wrote: > I get MAC address from ioctl. However, ifconfig can change this MAC > address. Can I get a real physical MAC address of the NIC? First, get a network card having a physical MAC. Most cards have only a (currently configured) default MAC address, may

Get physical MAC address

2007-12-30 Thread Theewara Vorakosit
Hello, I get MAC address from ioctl. However, ifconfig can change this MAC address. Can I get a real physical MAC address of the NIC? Thanks, Theewara -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at