![]() We need to use the C ioctl function and also pass the ifreq struct to the function. A successful request will write some data to ifr_ifru.įor more details on how to get a MAC address, read this howto. An interface name is something like eth0. If I want to get the MAC (or hardware) address, I specify SIOCGIFHWADDR.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |