mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
iphlpapi: Enable non-privileged ICMP (ping) on Mac OS X.
This commit is contained in:
parent
e814147b12
commit
d52f95cec8
@ -153,6 +153,11 @@ HANDLE WINAPI IcmpCreateFile(VOID)
|
||||
icmp_t* icp;
|
||||
|
||||
int sid=socket(AF_INET,SOCK_RAW,IPPROTO_ICMP);
|
||||
if (sid < 0)
|
||||
{
|
||||
/* Mac OS X supports non-privileged ICMP via SOCK_DGRAM type. */
|
||||
sid=socket(AF_INET,SOCK_DGRAM,IPPROTO_ICMP);
|
||||
}
|
||||
if (sid < 0) {
|
||||
ERR_(winediag)("Failed to use ICMP (network ping), this requires special permissions.\n");
|
||||
SetLastError(ERROR_ACCESS_DENIED);
|
||||
|
Loading…
Reference in New Issue
Block a user