prefix_ std::string senf::NetdeviceController::interfaceName()
{
struct ifreq ifr;
- ifr_name( ifr);
+ ifrName( ifr);
return std::string( ifr.ifr_name);
}
prefix_ int senf::NetdeviceController::mtu()
{
struct ifreq ifr;
- ifr_name(ifr);
+ ifrName( ifr);
doIoctl( ifr, SIOCGIFMTU);
return ifr.ifr_mtu;
}
prefix_ void senf::NetdeviceController::mtu(int new_mtu)
{
struct ifreq ifr;
- ifr_name( ifr);
+ ifrName( ifr);
ifr.ifr_mtu = new_mtu;
doIoctl( ifr, SIOCSIFMTU);
}
throwErrno();
}
-prefix_ void senf::NetdeviceController::ifr_name(ifreq& ifr)
+prefix_ void senf::NetdeviceController::ifrName(ifreq& ifr)
{
::memset( &ifr, 0, sizeof(ifr));
ifr.ifr_ifindex = ifindex_;