mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-29 12:17:49 +02:00
Merge branch 'PurpleI2P:openssl' into ui
This commit is contained in:
commit
b7f2dd9074
6 changed files with 58 additions and 38 deletions
|
@ -344,7 +344,7 @@ namespace net
|
|||
if(fd > 0)
|
||||
{
|
||||
ifreq ifr;
|
||||
strncpy(ifr.ifr_name, ifa->ifa_name, IFNAMSIZ); // set interface for query
|
||||
strncpy(ifr.ifr_name, ifa->ifa_name, IFNAMSIZ-1); // set interface for query
|
||||
if(ioctl(fd, SIOCGIFMTU, &ifr) >= 0)
|
||||
mtu = ifr.ifr_mtu; // MTU
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue