Skip to content
Snippets Groups Projects
Commit e6d9aaeb authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard
Browse files

iphlpapi: Update comment for SOCK_DGRAM since Linux also supports it from 3.0.


Linux does require the user to be in the range specified by
/proc/sys/net/ipv4/ping_group_range though, but otherwise works fine.

Signed-off-by: default avatarGabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent a41cb33a
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,8 @@ HANDLE WINAPI Icmp6CreateFile(VOID)
int sid=socket(AF_INET6,SOCK_RAW,IPPROTO_ICMPV6);
if (sid < 0)
{
/* Mac OS X supports non-privileged ICMP via SOCK_DGRAM type. */
/* Some systems (e.g. Linux 3.0+ and Mac OS X) support
non-privileged ICMP via SOCK_DGRAM type. */
sid=socket(AF_INET6,SOCK_DGRAM,IPPROTO_ICMPV6);
}
if (sid < 0) {
......@@ -217,7 +218,8 @@ HANDLE WINAPI IcmpCreateFile(VOID)
int sid=socket(AF_INET,SOCK_RAW,IPPROTO_ICMP);
if (sid < 0)
{
/* Mac OS X supports non-privileged ICMP via SOCK_DGRAM type. */
/* Some systems (e.g. Linux 3.0+ and Mac OS X) support
non-privileged ICMP via SOCK_DGRAM type. */
sid=socket(AF_INET,SOCK_DGRAM,IPPROTO_ICMP);
}
if (sid < 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment