Commit 761fce52 authored by Robert Lunnon's avatar Robert Lunnon Committed by Alexandre Julliard

Corrected code to acquire mtu under Solaris.

parent 8b39cea3
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment