Commit e6d9aaeb authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

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: 's avatarGabriel Ivăncescu <gabrielopcode@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent a41cb33a
...@@ -160,7 +160,8 @@ HANDLE WINAPI Icmp6CreateFile(VOID) ...@@ -160,7 +160,8 @@ HANDLE WINAPI Icmp6CreateFile(VOID)
int sid=socket(AF_INET6,SOCK_RAW,IPPROTO_ICMPV6); int sid=socket(AF_INET6,SOCK_RAW,IPPROTO_ICMPV6);
if (sid < 0) 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); sid=socket(AF_INET6,SOCK_DGRAM,IPPROTO_ICMPV6);
} }
if (sid < 0) { if (sid < 0) {
...@@ -217,7 +218,8 @@ HANDLE WINAPI IcmpCreateFile(VOID) ...@@ -217,7 +218,8 @@ HANDLE WINAPI IcmpCreateFile(VOID)
int sid=socket(AF_INET,SOCK_RAW,IPPROTO_ICMP); int sid=socket(AF_INET,SOCK_RAW,IPPROTO_ICMP);
if (sid < 0) 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); sid=socket(AF_INET,SOCK_DGRAM,IPPROTO_ICMP);
} }
if (sid < 0) { if (sid < 0) {
......
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