git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@567
270642c3-0616-0410-b53a-bc976706d245
prefix_ senf::MACAddress senf::NetdeviceController::hardwareAddress()
{
struct ifreq ifr;
+ ifrName( ifr);
doIoctl( ifr, SIOCGIFHWADDR);
return senf::MACAddress::from_data( ifr.ifr_hwaddr.sa_data);
}
MACAddress hardwareAddress();
std::string interfaceName();
- int interfaceIndex();
+ int interfaceIndex(); ///< return the interface index of the interface
int mtu();
void mtu(int new_mtu);
BOOST_AUTO_UNIT_TEST(NetdeviceController)
{
// senf::NetdeviceController ctrl ("eth0");
+// std::cout << ctrl.hardwareAddress() << "\n";
}
///////////////////////////////cc.e////////////////////////////////////////