From dillon@backplane.com  Mon May 25 20:52:04 1998
Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA11126
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 25 May 1998 20:52:03 -0700 (PDT)
          (envelope-from dillon@backplane.com)
Received: (dillon@localhost) by apollo.backplane.com (8.8.8/8.6.5) id UAA15670; Mon, 25 May 1998 20:52:03 -0700 (PDT)
Message-Id: <199805260352.UAA15670@apollo.backplane.com>
Date: Mon, 25 May 1998 20:52:03 -0700 (PDT)
From: Matthew Dillon <dillon@backplane.com>
Reply-To: dillon@backplane.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: mount_portal fails in sendmsg(..., MSG_EOR) due to MSG_EOR flag
X-Send-Pr-Version: 3.2

>Number:         6758
>Category:       kern
>Synopsis:       mount_portal fails because kernal refuses to accept MSG_EOR flag in sendmsg
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 25 20:50:00 PDT 1998
>Closed-Date:    Tue Dec 15 11:07:19 PST 1998
>Last-Modified:  Tue Dec 15 11:07:26 PST 1998
>Originator:     Matthew Dillon
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
Best Internet Communications, Inc.
>Environment:

	FreeBSD-current, CVS synchronized as of around April 7

>Description:

	mount_portal fails to work because the sendmsg() call in activate.c line
	152 passes the MSG_EOR flag to sendmsg(), which causes sendmsg()
	to return an error.

	Changing activate.c to pass 0 instead of MSG_EOR fixes the problem.

>How-To-Repeat:

---- /etc/portal.conf ----
tcp/    tcp tcp/
fs/     file fs/
--------------------------

	# mount_portal /etc/portal.conf /p
	# cat /p/tcp/idiom.com/13
	cat: /p/tcp/idiom.com/13: Connection reset by peer
	#
	# (hack mount_portal code and change MSG_EOR flag in sendmsg() call
	  to 0

	# mount portal /etc/portal.conf /p
	# cat /p/tcp/idiom.com/13
	Mon May 25 20:47:11 1998
	# 


>Fix:
	
	I'm not sure if the mount_portal source should use 0 instead of
	MSG_EOR in the sendmsg() call (activate.c line 152), or if the kernel
	should be fixed to accept the MSG_EOR flag.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->suspended 
State-Changed-By: phk 
State-Changed-When: Wed May 27 02:21:47 PDT 1998 
State-Changed-Why:  
portal is belived to need serious work before it is usable. 
State-Changed-From-To: suspended->closed 
State-Changed-By: dillon 
State-Changed-When: Tue Dec 15 11:07:19 PST 1998 
State-Changed-Why:  
Committed adjustments to freebsd-current 
>Unformatted:
