Quake 3 server (running under linux emulation) was failing with odd '
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 5 Apr 2004 00:06:02 +0000 (00:06 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 5 Apr 2004 00:06:02 +0000 (00:06 +0000)
commit2e866b9a671e297af17b9a35ae0bfdf1566bd3de
tree6383d47edb32bc97c956bc7e22336d16a9641e69
parentcdebf5c9a30a8bd063f6367c19684f93a3e2008b
Quake 3 server (running under linux emulation) was failing with odd '
Protocol not available' errors.  The problem turned out to be the internal
IP_HDRINCL check that the linux emulation code in the kernel was doing in
linux_sendto().  If the internal check fails with an error, the emulation
code should simply assume that IP_HDRINCL is off rather then return the error.

The bug was introduced during the syscall separation work on this module.
FreeBSD-4.x properly ignores the error.  This patch restores behavior for
DFly.

Reported-by: Sascha Wildner <saw@online.de>
sys/emulation/linux/linux_socket.c