mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-22 22:33:58 -07:00
Slightly tweak ioctl MTU error message
This commit is contained in:
parent
5773c1c758
commit
5d6b9d74d3
1 changed files with 1 additions and 1 deletions
|
@ -556,7 +556,7 @@ void LinuxEthernetTap::setMtu(unsigned int mtu)
|
||||||
strcpy(ifr.ifr_name,_dev.c_str());
|
strcpy(ifr.ifr_name,_dev.c_str());
|
||||||
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) {
|
||||||
printf("WARNING: ioctl() failed setting up Linux tap device (set MTU)\n");
|
printf("WARNING: ioctl() failed updating existing Linux tap device (set MTU)\n");
|
||||||
}
|
}
|
||||||
close(sock);
|
close(sock);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue