Corrected code to acquire mtu under Solaris.

This commit is contained in:
Robert Lunnon 2004-01-14 05:31:23 +00:00 committed by Alexandre Julliard
parent 8b39cea352
commit 761fce5261
1 changed files with 4 additions and 0 deletions

View File

@ -821,7 +821,11 @@ DWORD getInterfaceMtuByName(const char *name, PDWORD mtu)
if ((ioctl(fd, SIOCGIFMTU, &ifr)))
ret = ERROR_INVALID_DATA;
else {
#ifndef __sun
*mtu = ifr.ifr_mtu;
#else
*mtu = ifr.ifr_metric;
#endif
ret = NO_ERROR;
}
}