From pb@fasterix.frmug.org  Thu Jan  8 10:35:54 1998
Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA12366
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 8 Jan 1998 10:35:48 -0800 (PST)
          (envelope-from pb@fasterix.frmug.org)
Received: (from uucp@localhost)
	by frmug.org (8.8.8/frmug-2.2/nospam) with UUCP id TAA17946
	for FreeBSD-gnats-submit@freebsd.org; Thu, 8 Jan 1998 19:35:39 +0100 (CET)
	(envelope-from pb@fasterix.frmug.org)
Received: (from pb@localhost)
	by fasterix.frmug.org (8.8.8/8.8.5/pb-19970302) id TAA02393;
	Thu, 8 Jan 1998 19:29:27 +0100 (CET)
Message-Id: <199801081829.TAA02393@fasterix.frmug.org>
Date: Thu, 8 Jan 1998 19:29:27 +0100 (CET)
From: Pierre Beyssac <pb@fasterix.freenix.org>
Reply-To: pb@fasterix.freenix.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: Fix to implement TCP socket options in the Linuxulator
X-Send-Pr-Version: 3.2

>Number:         5464
>Category:       kern
>Synopsis:       Fix to implement TCP socket options in the Linuxulator
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    msmith
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan  8 14:33:34 PST 1998
>Closed-Date:    Fri Feb 6 19:47:45 PST 1998
>Last-Modified:  Fri Feb  6 19:48:28 PST 1998
>Originator:     Pierre Beyssac
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
considered harmful
>Environment:

Linux emulator, Linux apache.

>Description:

Linux apache works but issues a warning about a failed
setsockopt (TCP_NODELAY).

>How-To-Repeat:

Install Linux apache. You're perfectly entitled to tell me I have
weird ideas sometimes :-)

>Fix:
	
Proposed patch (note that the fuzz factor WRT -current is over 20
lines as it's really a common diff with another patch I just sent).
It's probably simpler to apply this by hand.

--- linux_socket.c.orig	Wed Dec 17 21:28:59 1997
+++ linux_socket.c	Thu Jan  8 19:14:30 1998
@@ -661,4 +683,8 @@
     case IPPROTO_IP:
 	name = linux_to_bsd_ip_sockopt(linux_args.optname);
+	break;
+    case IPPROTO_TCP:
+	/* Linux TCP option values match BSD's */
+	name = linux_args.optname;
 	break;
     default:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: msmith 
State-Changed-When: Fri Feb 6 19:47:45 PST 1998 
State-Changed-Why:  
Updated patches were tested and committed. 


Responsible-Changed-From-To: freebsd-bugs->msmith 
Responsible-Changed-By: msmith 
Responsible-Changed-When: Fri Feb 6 19:47:45 PST 1998 
Responsible-Changed-Why:  
I committed the changes. 
>Unformatted:
