Niko Schwarz
2005-01-23 18:02:11 UTC
Hello,
I'm writing a little obstacle for users to mass-copy programs my
university wrote.
It works fine already, I do it through the MAC address, which I read
from /sbin/ifconfig.
But: How can I read the MAC Address out of /proc? I seeked it a
little, but the file put out in the manual, /proc/net/socket doesn't
exist.
In /sys I don't find anything either. The only useful thing I found
was the ip6 address, which seems to contain the MAC Address.
Please don't tell me how unsafe all this is - I know it perfectly. And
I don't care much, it's not for me, I'd probably just rely on the
user's honesty.
Thanks in advance,
niko
I'm writing a little obstacle for users to mass-copy programs my
university wrote.
It works fine already, I do it through the MAC address, which I read
from /sbin/ifconfig.
But: How can I read the MAC Address out of /proc? I seeked it a
little, but the file put out in the manual, /proc/net/socket doesn't
exist.
In /sys I don't find anything either. The only useful thing I found
was the ip6 address, which seems to contain the MAC Address.
Please don't tell me how unsafe all this is - I know it perfectly. And
I don't care much, it's not for me, I'd probably just rely on the
user's honesty.
Thanks in advance,
niko