mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 20:43:44 +02:00
Merge branch 'dev' of https://github.com/zerotier/zerotierone into dev
This commit is contained in:
commit
5d4a9a4aa1
1 changed files with 12 additions and 7 deletions
|
@ -246,6 +246,9 @@ LinuxEthernetTap::LinuxEthernetTap(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
usleep(100000);
|
||||||
|
|
||||||
|
if (isOldLinuxKernel()) {
|
||||||
ifr.ifr_ifru.ifru_mtu = (int)_mtu;
|
ifr.ifr_ifru.ifru_mtu = (int)_mtu;
|
||||||
if (ioctl(sock,SIOCSIFMTU,(void *)&ifr) < 0) {
|
if (ioctl(sock,SIOCSIFMTU,(void *)&ifr) < 0) {
|
||||||
::close(sock);
|
::close(sock);
|
||||||
|
@ -254,6 +257,8 @@ LinuxEthernetTap::LinuxEthernetTap(
|
||||||
}
|
}
|
||||||
|
|
||||||
usleep(100000);
|
usleep(100000);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ifr.ifr_flags |= IFF_MULTICAST;
|
ifr.ifr_flags |= IFF_MULTICAST;
|
||||||
ifr.ifr_flags |= IFF_UP;
|
ifr.ifr_flags |= IFF_UP;
|
||||||
|
|
Loading…
Add table
Reference in a new issue