iphlpapi: Hint what to do when icmp does not work
Janne Hakonen
joyer83 at live.fi
Fri Feb 11 12:31:27 CST 2011
Maybe this information could be added to http://wiki.winehq.org/FAQ instead?
Janne
-----Original Message-----
From: Charles Davis
Sent: Friday, February 11, 2011 8:17 PM
To: wine-devel at winehq.org
Subject: Re: iphlpapi: Hint what to do when icmp does not work
On 2/11/11 11:12 AM, André Hentschel wrote:
> Otherwise the user might try running wine as root or doesn't know that
> this error can be easily fixed when needed.
> ---
> dlls/iphlpapi/icmp.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/dlls/iphlpapi/icmp.c b/dlls/iphlpapi/icmp.c
> index d8ee101..41d1940 100644
> --- a/dlls/iphlpapi/icmp.c
> +++ b/dlls/iphlpapi/icmp.c
> @@ -155,6 +155,7 @@ HANDLE WINAPI IcmpCreateFile(VOID)
> int sid=socket(AF_INET,SOCK_RAW,IPPROTO_ICMP);
> if (sid < 0) {
> ERR_(winediag)("Failed to use ICMP (network ping), this requires
> special permissions.\n");
> + ERR_(winediag)("Try running \"sudo setcap cap_net_raw+epi
> /usr/bin/wine-preloader\".\n");
That only works on systems that support POSIX capabilities (Linux, and
maybe OpenBSD).
Chip
More information about the wine-devel
mailing list