I am writing an application that reports attributes of network devices on the local machine. I need the mac address, mtu, link speed and a few others. I\'m using udev for th
You can get the link speed in bit per second using the sysfs interface:
sysfs
cat /sys/class/net/eth0/speed 1000