mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 12:06:55 +02:00
fix function call
This commit is contained in:
parent
fdf4ebd43c
commit
5d63ed6739
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue