1/20/2024 0 Comments Linux how to get mac addressIf (if_name_len, each beginning with the prefix ARPHRD_. ![]() ![]() Since this is a fixed-length buffer you should take care to ensure that the name does not cause an overrun: The ifreq structure should initially contain the name of the interface to be queried, which should be copied into the ifr_name field. The following header files will be needed:Ĭreate an ifreq structure for passing data in and out of ioctl
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |