zamnfe.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

(x86), IDE/ATA/ATAPI, PCMCIA (only tested on x86), SCSI and USB. currently supports DMI (x86 and IA-64 only), OpenFirmware device tree (PowerPC only), PCI/AGP, CPUID Also, there is no mention of interfaces built on this piece of hardware. Notice that, even if you change the apparent MC address of the wifi card with macchanger, lshw will still display the true MAC address, contrary to ifconfig, which displays the changed one. The MAC address is, of course, the serial number.

get mac address of interface linux c language

Lshw will do this for you: sudo lshw -C networkįor instance, my wifi card is displayed as follows: *-networkĬapabilities: pm msi pciexpress bus_master cap_list ethernet physical wirelessĬonfiguration: broadcast=yes driver=iwlwifi driverversion=3.11.0-15-generic firmware=18.168.6.1 latency=0 link=no multicast=yes wireless=IEEE 802.11abgn









Get mac address of interface linux c language