-
October 19th, 2009, 03:33 AM
#1
get MAC Address
how to get mac address of the system.
my OS is linux fedora.
i have done it already in java but i don't know how to get MAC ADDress with C++.
Please rate my post if it was helpful for you. Java, C#, C++, PHP, ASP.NET
SQL Server, MySQL
DirectX
MATH Touraj Ebrahimi
[toraj_e] [at] [yahoo] [dot] [com]
-
October 19th, 2009, 09:20 AM
#2
Re: get MAC Address
ioctl is your friend.
Search for SIOCGIFHWADDR, I think that's what the parameter is called that you want.
More computing sins are committed in the name of efficiency (without necessarily achieving it) than for any other single reason - including blind stupidity. --W.A.Wulf
Premature optimization is the root of all evil --Donald E. Knuth
Please read Information on posting before posting, especially the info on using [code] tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|