Build fix.

This commit is contained in:
Adam Ierymenko 2020-11-11 15:29:01 -05:00
parent 59dd71187e
commit eadca9dd75
No known key found for this signature in database
GPG Key ID: C8877CF2D7A5D7F3

View File

@ -440,7 +440,7 @@ void LinuxEthernetTap::threadMain()
return; return;
} }
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);
printf("WARNING: ioctl() failed setting up Linux tap device (set MTU)\n"); printf("WARNING: ioctl() failed setting up Linux tap device (set MTU)\n");