mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-19 04:57:53 +00:00
fix function call
This commit is contained in:
parent
fdf4ebd43c
commit
5d63ed6739
@ -265,7 +265,7 @@ LinuxEthernetTap::LinuxEthernetTap(
|
||||
|
||||
usleep(100000);
|
||||
|
||||
if (!isLinuxV2OrLess()) {
|
||||
if (!isOldLinuxKernel()) {
|
||||
ifr.ifr_ifru.ifru_hwaddr.sa_family = ARPHRD_ETHER;
|
||||
_mac.copyTo(ifr.ifr_ifru.ifru_hwaddr.sa_data,6);
|
||||
if (ioctl(sock,SIOCSIFHWADDR,(void *)&ifr) < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user