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