X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FNetdeviceController.hh;h=dbc5ce6154c3dcbcfb4559ccdc1f853f2ef358ac;hb=5b0d6f7a66facf978d24ad39540e77c3b502fd15;hp=1db86556102381eec3eed7e6de371226d1af4af9;hpb=a1a6c76a214ad1935032826713cabaf9ac57bf07;p=senf.git diff --git a/Socket/NetdeviceController.hh b/Socket/NetdeviceController.hh index 1db8655..dbc5ce6 100644 --- a/Socket/NetdeviceController.hh +++ b/Socket/NetdeviceController.hh @@ -50,16 +50,16 @@ namespace senf { NetdeviceController(int interface_index); virtual ~NetdeviceController(); - MACAddress hardwareAddress(); - std::string interfaceName(); - int interfaceIndex(); ///< return the interface index of the interface - int mtu(); - void mtu(int new_mtu); + 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; private: void openSocket(); - void doIoctl(ifreq& ifr, int request); - void ifrName(ifreq& ifr); + void doIoctl(ifreq& ifr, int request) const; + void ifrName(ifreq& ifr) const; int sockfd_; int ifindex_; };