diff --git a/src/adapters/net.cpp b/src/adapters/net.cpp index d32f4b25..7168d01a 100644 --- a/src/adapters/net.cpp +++ b/src/adapters/net.cpp @@ -194,7 +194,7 @@ namespace net { */ strncpy(request.ifr_name, m_interface.c_str(), IFNAMSIZ - 1); - request.ifr_data = reinterpret_cast(&driver); + request.ifr_data = reinterpret_cast(&driver); if (ioctl(*m_socketfd, SIOCETHTOOL, &request) == -1) { return; @@ -258,7 +258,7 @@ namespace net { memset(&request, 0, sizeof(request)); strncpy(request.ifr_name, m_interface.c_str(), IFNAMSIZ - 1); data.cmd = ETHTOOL_GSET; - request.ifr_data = reinterpret_cast(&data); + request.ifr_data = reinterpret_cast(&data); if (ioctl(*m_socketfd, SIOCETHTOOL, &request) == -1) { return false; @@ -283,7 +283,7 @@ namespace net { memset(&request, 0, sizeof(request)); strncpy(request.ifr_name, m_interface.c_str(), IFNAMSIZ - 1); data.cmd = ETHTOOL_GLINK; - request.ifr_data = reinterpret_cast(&data); + request.ifr_data = reinterpret_cast(&data); if (ioctl(*m_socketfd, SIOCETHTOOL, &request) == -1) { return false;