How is 0.0.0.0 handled in Wine?

Austin English austinenglish at gmail.com
Mon Jun 8 19:07:50 CDT 2009


Howdy all,

Doing some testing with PuTTY, I've noticed some strange behavior.
I've got windows XP in a VM, and when comparing behavior to Wine, I
noticed some inconsistencies with respect to the '0.0.0.0' invalid
address.

Windows:
Putty -> 0.0.0.0: throws an error "Network error: Cannot assign
requested address"
ping (in cmd.exe):
D:\appinstall>ping 0.0.0.0

Pinging 0.0.0.0 with 32 bytes of data:

Destination specified is invalid.
Destination specified is invalid.
Destination specified is invalid.
Destination specified is invalid.

Ping statistics for 0.0.0.0:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

Wine:
Putty -> 0.0.0.0 route to localhost, login succeeds (Not sure if it's
routing to localhost or 127.0.0.1)

FWIW, Ubuntu:
ssh -> 0.0.0.0: routes to localhost, where I've got sshd running, connects fine.
ping -> 0.0.0.0 routes to 127.0.0.1, succeeds

Seems to me to be a bug, i.e., Wine shouldn't be able to use 0.0.0.0.
It seems that we're simply passing this on to the host os, which is
then routing it back to localhost. Perhaps we need to catch 0.0.0.0 as
a special case and refuse? Grepping in the source code for 0.0.0.0
only shows a few hits: comctl32 (unrelated), rpcrt4 (appears
unrelated) and ws2_32 (but only in the tests, not in the
implementation).

-- 
-Austin



More information about the wine-devel mailing list