2000-10-27 13:52:15

by Alan Cox

[permalink] [raw]
Subject: Re: bind() allowed to non-local addresses

> Does some one have a copy of the posix 1003.1g draft so this can be
> verified. This is the kind of ammunition I was talking about earlier

1003.1g isnt what matters - SuS is.

> that I would need to convince Sun to change the compatibility test
> suite. However, if the 1003.1g draft even mentions failure with errno

The compatibility test is broken from a pedantic point of view as your IP
address can change dynamically between the query for it and the bind.

In general though, bind() is assumed to do the checks and fail if non local
and I agree