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