Kostadin Vardin(deleted)
|
How to obtrain MAC address with devctl
|
Kostadin Vardin(deleted)
07/15/2010 9:06 PM
post59605
|
How to obtrain MAC address with devctl
Hello,
I am trying to obtain the MAC address by using DCMD_IO_NET_NICINFO command.
Here is the snippet code:
Nic_t nic;
fd = open( "/dev/bpf", O_RDWR );
devctl(fd, DCMD_IO_NET_NICINFO , &nic, sizeof( Nic_t ), NULL);
The result is always FF into the permanent_address[] filed.
I tried with "/dev/bpf0", same result.
Could you please advise what is wrong?!?
Thank you in forward,
Kostadin Vardin
|
|
|