Updated discussion of SO_BSDCOMPAT.

This commit is contained in:
Michael Kerrisk 2005-12-14 10:27:10 +00:00
parent ed07f09aeb
commit 9ae132041b
1 changed files with 3 additions and 3 deletions

View File

@ -90,16 +90,16 @@ which don't pass any errors unless the socket is connected.
Linux's behaviour is mandated by
.BR RFC\ 1122 .
For compatibility with legacy code it is possible to set the
For compatibility with legacy code in Linux 2.0 and 2.2
it was possible to set the
.B SO_BSDCOMPAT
SOL_SOCKET option to receive remote errors only when the socket has been
connected (except for
.B EPROTO
and
.BR EMSGSIZE ).
It is better to fix the
code to handle errors properly than to enable this option.
Locally generated errors are always passed.
Support for this socket option was removed in Linux 2.4.
When the
.B IP_RECVERR