Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

Linux- 如何由User Space透過ioctl得知MAC Address

可以直接寫個程式碼透過 SIOCGIFHWADDR 這個關鍵字,
使用方法 ioctl( SIOCGIFHWADDR );
去Kernel Space得到資訊再傳回User Space

範例如下:

發表迴響