finaler.blogg.se

Get mac address of interface linux c language
Get mac address of interface linux c language










get mac address of interface linux c language

The following is with iproute2-2.6.34: # ip tuntap help Thus, installing tunctl (UML utilities) or OpenVPN just to be able to create tun devices is no longer needed.

get mac address of interface linux c language

Update : Thanks to this post, I've learned that recent versions of iproute2 can (finally) create tun/tap devices, although the functionality is (still?) blissfully undocumented. Link to the source tarball described in the article: simpletun.

get mac address of interface linux c language

Please report any bug or error you find in the code or otherwise in this article. Also, the description is by no means a definitive reference on the subject, but rather the result of my experimentation. If you want to be serious, you'll have to make it more robust and integrate it with other code. Foreword: please note that the code available here is only for demonstration purposes.












Get mac address of interface linux c language