> another 1.3 tree. I didn't commit to 2.0, because I forgot. :-( The
> problem is that we are checking for the wrong errno when the setsockopt
> fails. The errno we check for should never be returned by setsockopt. If
> we change the errno to the correct one (I have to look at my patch),
Hmm - I found that to be a) inconsistent across the machines I have here;
and one specific machine actually kernel-panic's :-) (it is running a
CVS snapshot). For those cases it is still very usefull to be able to
switch it on/off at install/run time. (And not to mention if you want to
do quick comparisons).
So I've popped in a quick patch that scratches my itch. If you could
commit a patch to fix the error code check. Though I may add that
if (setsockopt(s, SOL_SOCKET, SO_ACCEPTFILTER, &af, sizeof(af)) < 0
&& errno != ENOENT) {
is what freebsd gives back if it is not there. ENOPROTOOPT is what the
newer FreeBSD on -HEAD system gave me back I think. Or did I swap them.
Fix appreciared.
Dw