X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FNetdeviceController.hh;h=cabf6a448743dc2530676cf2afff0053965fec23;hb=7baaacae27c02c86ceda5c7ee41d3172d1e23ffa;hp=dbc5ce6154c3dcbcfb4559ccdc1f853f2ef358ac;hpb=ab05c3d687d911b4d204aa20bf900dc23d174545;p=senf.git diff --git a/Socket/NetdeviceController.hh b/Socket/NetdeviceController.hh index dbc5ce6..cabf6a4 100644 --- a/Socket/NetdeviceController.hh +++ b/Socket/NetdeviceController.hh @@ -50,12 +50,17 @@ namespace senf { NetdeviceController(int interface_index); virtual ~NetdeviceController(); - MACAddress hardwareAddress() const; - std::string interfaceName() const; - int interfaceIndex() const; ///< return the interface index of the interface - int mtu() const; - void mtu(int new_mtu) const; + int interfaceIndex() const; ///< return the interface index + MACAddress hardwareAddress() const; ///< return hardware address + void hardwareAddress(const MACAddress &newAddress); ///< set hardware address + + std::string interfaceName() const; ///< return interface name + void interfaceName(const std::string &newName) const; ///< set interface name + + int mtu() const; ///< return the Maximum Transmission Unit + void mtu(int new_mtu) const; //< set the Maximum Transmission Unit + private: void openSocket(); void doIoctl(ifreq& ifr, int request) const;