How is 0.0.0.0 handled in Wine?

Ben Klein shacklein at gmail.com
Mon Jun 8 19:14:29 CDT 2009


2009/6/9 Austin English <austinenglish at gmail.com>:
> 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

This doesn't look right to me, but it also happens on my Debian box.
Looks like that's how Linux works.

> 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?

I'm not sure Wine should be a special case if it's not breaking apps.



More information about the wine-devel mailing list