mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 21:07:13 +02:00
const strref
This commit is contained in:
@ -60,7 +60,7 @@ class MacAddr {
|
||||
|
||||
IpAddr HostnameToIp(const char *hostname);
|
||||
std::string IpToInterfaceName(const std::string& ip);
|
||||
MacAddr InterfaceNameToMac(std::string inf);
|
||||
MacAddr InterfaceNameToMac(const std::string& inf);
|
||||
|
||||
std::ostream &operator<<(std::ostream &out, const IpAddr &addr);
|
||||
std::ostream &operator<<(std::ostream &out, const MacAddr &addr);
|
||||
|
@ -122,7 +122,7 @@ std::string IpToInterfaceName(const std::string &ip) {
|
||||
return std::string(buf);
|
||||
}
|
||||
|
||||
MacAddr InterfaceNameToMac(std::string inf) {
|
||||
MacAddr InterfaceNameToMac(const std::string& inf) {
|
||||
//TODO! Copied from genericSocket needs to be refactored!
|
||||
struct ifreq ifr;
|
||||
char mac[32];
|
||||
|
Reference in New Issue
Block a user