Followup to: <[EMAIL PROTECTED]> By author: "David S. Miller" <[EMAIL PROTECTED]> In newsgroup: linux.dev.kernel > > How about first finding out why their buggy JRE detects whether an > address is local by trying to bind() to it :-) > > Really, when an application feeds a specific address into bind() it > must have good reason for selecting it. All I want to know in this > specific instance, is why Sun's JRE is sending non-local addresses > into bind(), that's all. > autofs uses the following algorithm to determine if an address is local: connect to it as the remote end using a datagram socket (so there isn't any actual network traffic). If the LOCAL address (which is picked by the system) and the REMOTE address (the address under test) are identical afterwards, the address is local. -hpa -- <[EMAIL PROTECTED]> at work, <[EMAIL PROTECTED]> in private! "Unix gives you enough rope to shoot yourself in the foot." http://www.zytor.com/~hpa/puzzle.txt - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: bind() allowed to non-local addresses Christoph Rohland
- Re: bind() allowed to non-local addresses Matt Peterson
- Re: bind() allowed to non-local addresses Andi Kleen
- Re: bind() allowed to non-local addresses Alan Cox
- RE: bind() allowed to non-local addresses David Schwartz
- Re: bind() allowed to non-local addresses Alberto Bertogli
- Re: bind() allowed to non-local addresses David S. Miller
- Re: bind() allowed to non-local addresses Jamie Lokier
- Re: bind() allowed to non-local addresses Horst von Brand
- Re: bind() allowed to non-local address... Jamie Lokier
- Re: bind() allowed to non-local addresses H. Peter Anvin
- Re: bind() allowed to non-local addresses Matt Peterson
- Re: bind() allowed to non-local addresses David S. Miller
- Re: bind() allowed to non-local address... Matt Peterson
- Re: bind() allowed to non-local ad... David S. Miller
- Re: bind() allowed to non-loca... Matt Peterson
- Re: bind() allowed to non-loca... Andi Kleen
- Re: bind() allowed to non-loca... David S. Miller
- Re: bind() allowed to non-loca... Felix von Leitner
- Re: bind() allowed to non-loca... David S. Miller
- Re: bind() allowed to non-loca... Christoph Hellwig