WineHQ
Bug Tracking Database – Bug 33272

 Bugzilla

 

Last modified: 2014-01-17 13:58:35 UTC  

Pinging 0.0.0.0 returns success, when it should return failure.

Bug 33272 - Pinging 0.0.0.0 returns success, when it should return failure.
Pinging 0.0.0.0 returns success, when it should return failure.
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: iphlpapi
1.5.26
x86-64 Linux
: P2 minor
: ---
Assigned To: Bruno Jesus
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2013-03-25 12:54 UTC by Iskren Todorov
Modified: 2014-01-17 13:58 UTC (History)
2 users (show)

See Also:
Regression SHA1:
Fixed by SHA1: 1470d7b4cc607976b7d379d5ce594f65b3ca3c5b
Distribution: ---
Staged patchset:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iskren Todorov 2013-03-25 12:54:31 UTC
Greetings. Slackware64-current with wine-1.5.26, wineserver and wine-preloader are  with capabilities of opening raw sockets (setcap cap_net_raw+ep /usr/bin/wineserver; setcap cap_net_raw+ep /usr/bin/wine-preloader). Pinging a random IP address or website with a ping tool (Like the free Colasoft Ping Tool) works as it should, but pinging 0.0.0.0 returns 0ms ping responses, while it should return timeouts. If you need any logfiles or traces, tell me so I can dump them and provide them. Thanks.
Comment 1 Bruno Jesus 2013-03-25 18:24:58 UTC
Are you using IcmpSendEcho?
Comment 2 Iskren Todorov 2013-03-26 07:37:44 UTC
I don't know if the program (Colasoft Ping Tool) is, but I tested the following:
Compile the example program from http://msdn.microsoft.com/en-us/library/windows/desktop/aa366050(v=vs.85).aspx with
wineg++ -m32 icmpsendecho.cpp -lws2_32 -liphlpapi 
and ran the resulting executable

./icmpsendecho.exe 0.0.0.0
        Sent icmp message to 0.0.0.0
        Received 1 icmp message response
        Information from this response:
          Received from 127.0.0.1
          Status = 0
          Roundtrip time = 0 milliseconds

I hope this info is useful.
Comment 3 Iskren Todorov 2013-03-26 07:48:51 UTC
I can't find the edit button, I just sniffed the traffic and it seems that wine substitutes the 0.0.0.0 with the loopback address 127.0.0.1, so I'm simply pinging myself. Here's the tcpdump output:
tcpdump -i lo icmp -n
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 65535 bytes
14:48:09.401500 IP 127.0.0.1 > 127.0.0.1: ICMP echo request, id 21554, seq 256, length 40
14:48:09.401535 IP 127.0.0.1 > 127.0.0.1: ICMP echo reply, id 21554, seq 256, length 40
Comment 4 Bruno Jesus 2013-03-26 08:08:50 UTC
If you use the ping utility in Windows the address 0.0.0.0 returns an invalid address.
If you use the ping utility in Linux the address is converted in 127.0.0.1 as you stated.
Comment 5 Bruno Jesus 2014-01-13 17:27:27 UTC
Fixed by 1470d7b4cc607976b7d379d5ce594f65b3ca3c5b, thanks for the report.
Comment 6 Alexandre Julliard 2014-01-17 13:58:35 UTC
Closing bugs fixed in 1.7.11.


Privacy Policy
If you have a privacy inquiry regarding this site, please write to [email protected]

Hosted By CodeWeavers